Skip to content

Commit

Permalink
Fix version variables evaluation in build
Browse files Browse the repository at this point in the history
Using github variables to provide version and commit sha variables for
build.

Follow-up to konveyor#154

Signed-off-by: Marek Aufart <maufart@redhat.com>
  • Loading branch information
aufi committed Feb 16, 2024
1 parent 2437f36 commit 4aaadb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/multi-arch-image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ jobs:
sed -i "s,FROM quay.io/konveyor/windup-shim\:latest,FROM quay.io/konveyor/windup-shim:${TAG}," Dockerfile
sed -i "s,FROM quay.io/konveyor/static-report\:latest,FROM quay.io/konveyor/static-report:${TAG}," Dockerfile
sed -i "s,FROM quay.io/konveyor/analyzer-lsp\:latest,FROM quay.io/konveyor/analyzer-lsp:${TAG}," Dockerfile
export BUILD_COMMIT=$(git rev-parse HEAD)
extra-args: |
--build-arg VERSION=${tag} --build-arg BUILD_COMMIT=${BUILD_COMMIT}
--build-arg VERSION=${{ github.ref == 'refs/heads/main' && 'latest' || github.ref_name }} --build-arg BUILD_COMMIT=${{ github.sha }}
secrets:
registry_username: ${{ secrets.QUAY_PUBLISH_ROBOT }}
registry_password: ${{ secrets.QUAY_PUBLISH_TOKEN }}

0 comments on commit 4aaadb2

Please sign in to comment.