Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix load test image version tag
Cezary Miącz94cc5eae02fe
diff --git a/.github/workflows/publish-containers.yml b/.github/workflows/publish-containers.ymlindex f2c09d13a7..3c93dbeff7 100644--- a/.github/workflows/publish-containers.yml+++ b/.github/workflows/publish-containers.yml@@ -7,6 +7,10 @@ on:description: Optional image prefix for branch buildrequired: falsetype: string+ version:+ description: Optional custom image version tag+ required: false+ type: stringsecrets:SLACK_WEBHOOK_URL:SLACK_MENTION_GROUP_ID:@@ -46,9 +50,9 @@ jobs:ghcr.io/${{ steps.image.outputs.image_name }}tags: |type=ref,event=branch,prefix=${{ inputs.prefix }}- type=ref,event=pr,prefix=${{ inputs.prefix }}type=pep440,pattern={{version}}type=pep440,pattern={{major}}.{{minor}}+ type=raw,value=${{ inputs.version }},enable=${{ inputs.version != null }}- name: Set up QEMUuses: docker/setup-qemu-action@v3@@ -89,8 +93,8 @@ jobs:if: ${{ failure() }}env:JOB_STATUS: ${{ job.status }}- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLOUD_CI_WEBHOOK_URL }}- SLACK_MENTION_GROUP_ID: ${{ secrets.SLACK_CORE_SUPPORT_GROUP_ID }}+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}+ SLACK_MENTION_GROUP_ID: ${{ secrets.SLACK_MENTION_GROUP_ID }}JOB_TITLE: "Build of Saleor Core ${{ steps.meta.outputs.version }}"run: |python3 ./.github/workflows/notify/notify-slack.pydiff --git a/.github/workflows/publish-load-test.yml b/.github/workflows/publish-load-test.ymlindex 9785306e32..6ad48f9584 100644--- a/.github/workflows/publish-load-test.yml+++ b/.github/workflows/publish-load-test.yml@@ -6,11 +6,30 @@ on:branches: ["**"]jobs:- publish:+ init:if: ${{ ((github.event.action == 'labeled') && (github.event.label.name == 'load test')) || ((github.event.action != 'labeled') && contains(github.event.pull_request.labels.*.name, 'load test')) }}+ runs-on: ubuntu-20.04+ outputs:+ version: ${{ steps.variables.outputs.version }}+ steps:+ - name: Prepare variables+ id: variables+ run:+ set -x++ branch=${{ github.event.pull_request.head.ref }}+ branch_slug=$(echo "$branch" | sed 's@/@-@g')+ branch_sha=${{ github.event.pull_request.head.sha }}+ image_version="${branch_slug}-${branch_sha:0:8}"++ echo "VERSION=${image_version}" >> $GITHUB_OUTPUT++ publish:+ needs:+ - inituses: ./.github/workflows/publish-containers.ymlwith:- prefix: load-test-+ version: ${{ needs.init.outputs.version }}secrets:SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLOUD_CI_WEBHOOK_URL }}SLACK_MENTION_GROUP_ID: ${{ secrets.SLACK_CORE_SUPPORT_GROUP_ID }}@@ -26,4 +45,4 @@ 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-load-test\",\"client_payload\":{\"version\":\"${{ needs.publish.outputs.version }}\"}}"+ -d "{\"event_type\":\"deploy-load-test\",\"client_payload\":{\"version\":\"${{ needs.publish.outputs.version }}\",\"branch\":\"${{ github.event.pull_request.base.ref }}\"}}"