Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use image metadata version instead of the old env vars (#14650)
Patryk Zawadzki3e80fdd9b38f
diff --git a/.github/workflows/publish-containers.rst b/.github/workflows/publish-containers.rstdeleted file mode 100644index d4b056fd03..0000000000--- a/.github/workflows/publish-containers.rst+++ /dev/null@@ -1,43 +0,0 @@-Tagging Process------------------+-----------------------------------+-----------------------------------------------------------------------+-| Git Ref | Container Tags |-+===================================+=======================================================================+-| ``refs/tags/1.0.0`` | ghcr.io/saleor/saleor:1.0.0 |-| | ghcr.io/saleor/saleor:latest |-+-----------------------------------+-----------------------------------------------------------------------+-| ``refs/tags/1.0.0a1`` | ghcr.io/saleor/saleor:1.0.0a1 |-| | ghcr.io/saleor/saleor:snapshot |-+-----------------------------------+-----------------------------------------------------------------------+-| ``refs/tags/1.0.0rc1`` | ghcr.io/saleor/saleor:1.0.0rc1 |-| | ghcr.io/saleor/saleor:snapshot |-+-----------------------------------+-----------------------------------------------------------------------+-| ``refs/heads/main`` | ghcr.io/saleor/saleor:unstable-main |-+-----------------------------------+-----------------------------------------------------------------------+-| ``refs/heads/preview/my-feature`` | ghcr.io/saleor/saleor:unstable-my-feature |-+-----------------------------------+-----------------------------------------------------------------------+---Version Label and Argument for Dockerfile--------------------------------------------When the image is built, the following instructions will be provided to the below attached values in the dockerfile:--.. code-block:: docker-- ARG VERSION=<NAMED_VERSION>- LABEL org.opencontainers.image.version=<NAMED_VERSION>---+-----------------------------------+--------------------------------------------------------+-| Git Ref | Open Containers Version Value (``<NAMED_VERSION>``) |-+===================================+========================================================+-| ``refs/tags/1.0.0`` | 1.0.0 |-+-----------------------------------+--------------------------------------------------------+-| ``refs/tags/1.0.0a1`` | 1.0.0a1 |-+-----------------------------------+--------------------------------------------------------+-| ``refs/heads/main`` | heads/main-0-g8ccaf9 |-+-----------------------------------+--------------------------------------------------------+-| ``refs/heads/preview/my-feature`` | heads/preview/my-feature-0-gd12214 |-+-----------------------------------+--------------------------------------------------------+diff --git a/.github/workflows/publish-containers.yml b/.github/workflows/publish-containers.ymlindex 599b9c1b71..0cfab51fe5 100644--- a/.github/workflows/publish-containers.yml+++ b/.github/workflows/publish-containers.yml@@ -77,13 +77,13 @@ jobs:-H "Accept: application/vnd.github.v3+json" \-H "Authorization: Bearer ${{ secrets.SALEOR_RELEASE_TOKEN }}" \https://api.github.com/repos/saleor/saleor-multitenant/dispatches \- -d "{\"event_type\":\"deploy-staging\",\"client_payload\":{\"version\":\"$VERSION\"}}"+ -d "{\"event_type\":\"deploy-staging\",\"client_payload\":{\"version\":\"${{ steps.meta.outputs.version }}\"}}"curl -f -X POST \-H "Accept: application/vnd.github.v3+json" \-H "Authorization: Bearer ${{ secrets.SALEOR_RELEASE_TOKEN }}" \https://api.github.com/repos/saleor/saleor-cloud-deployments/dispatches \- -d "{\"event_type\":\"deploy-demo-staging\",\"client_payload\":{\"version\":\"$VERSION\"}}"+ -d "{\"event_type\":\"deploy-demo-staging\",\"client_payload\":{\"version\":\"${{ steps.meta.outputs.version }}\"}}"- name: Notify Slackif: ${{ failure() }}@@ -91,6 +91,6 @@ jobs:JOB_STATUS: ${{ job.status }}SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLOUD_CI_WEBHOOK_URL }}SLACK_MENTION_GROUP_ID: ${{ secrets.SLACK_CORE_SUPPORT_GROUP_ID }}- JOB_TITLE: "Build of Saleor Core ${{ env.VERSION || env.NAMED_VERSION }}"+ JOB_TITLE: "Build of Saleor Core ${{ steps.meta.outputs.version }}"run: |python3 ./.github/workflows/notify/notify-slack.py