Skip to content

Commit

Permalink
Fix version variables evaluation in github build (konveyor#156)
Browse files Browse the repository at this point in the history
Fix version variables evaluation in build

Using github variables to provide version and commit sha variables for
build.

Follow-up to konveyor#154

Signed-off-by: Marek Aufart <[email protected]>
  • Loading branch information
aufi committed Feb 21, 2024
1 parent 0775568 commit a15a12b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/multi-arch-image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
quay_publish_token: ${{ secrets.QUAY_PUBLISH_TOKEN }}
ref: ${{ github.ref }}
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 }}

0 comments on commit a15a12b

Please sign in to comment.