Skip to content

Commit

Permalink
🌱 fix how sr version is computed and passed (#63)
Browse files Browse the repository at this point in the history
Signed-off-by: David Zager <dzager@redhat.com>
  • Loading branch information
djzager authored Jan 10, 2024
1 parent 081f59d commit f60f3ad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/multi-arch-image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,22 @@ 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:
registry: "quay.io/konveyor"
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 }}

0 comments on commit f60f3ad

Please sign in to comment.