From 971a4c86f889a39b196e4f1cfb205f1883cd9a35 Mon Sep 17 00:00:00 2001 From: David Zager Date: Wed, 10 Jan 2024 09:18:18 -0500 Subject: [PATCH] :seedling: fix how sr version is computed and passed Signed-off-by: David Zager --- .github/workflows/multi-arch-image-build.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/multi-arch-image-build.yaml b/.github/workflows/multi-arch-image-build.yaml index fb28b4a..1e0418d 100644 --- a/.github/workflows/multi-arch-image-build.yaml +++ b/.github/workflows/multi-arch-image-build.yaml @@ -14,6 +14,14 @@ concurrency: cancel-in-progress: true jobs: + version: + name: Compute version + runs-on: ubuntu-20.04 + steps: + - name: Set up VERSION variable + run: | + echo "SR_VERSION=${GITHUB_REF_NAME/main/latest}" >> "$GITHUB_ENV" + image-build: uses: konveyor/release-tools/.github/workflows/build-push-images.yaml@main with: @@ -21,7 +29,7 @@ jobs: image_name: "static-report" containerfile: "./Dockerfile" architectures: '[ "amd64", "arm64", "ppc64le", "s390x" ]' - extra-args: "--build-arg VERSION=${GITHUB_REF_NAME/main/latest}" + extra-args: "--build-arg VERSION=${{ env.SR_VERSION }}" secrets: registry_username: ${{ secrets.QUAY_PUBLISH_ROBOT }} registry_password: ${{ secrets.QUAY_PUBLISH_TOKEN }}