Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Trigger staging deployment for tagged releases (#8650)
Cezary Miącz910b496723d3
diff --git a/.github/workflows/publish-containers.yml b/.github/workflows/publish-containers.ymlindex c1665d1b52..b39284750c 100644--- a/.github/workflows/publish-containers.yml+++ b/.github/workflows/publish-containers.yml@@ -57,6 +57,7 @@ jobs:echo "CONTAINER_TAGS=${TAGS}NAMED_VERSION=${NAMED_VERSION}+ VERSION=${VERSION}" >> "${GITHUB_ENV}"# Outputs the containers tags for staging branches@@ -130,3 +131,12 @@ jobs:echo $"\Digest: ${{ steps.docker_build.outputs.digest }}Tags: ${{ env.CONTAINER_TAGS }}"++ - name: Trigger staging deployment for tagged release+ if: ${{ startsWith(github.ref, 'refs/tags/') }}+ run: |+ 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-multitenant/dispatches \+ -d "{\"event_type\":\"deploy-staging\",\"client_payload\":{\"version\":\"$VERSION\"}}"