-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update the VERSION variable assignment method (#1552)
* fix: update the VERSION variable assignment method This PR: * fixes the issue the VERSION variable assignment from `?=` to `:=` to ensure immediate evaluation of `$(GIT_VERSION)` * Use `fetch_depth` to fetch the tag info for computing the `GIT_VERSION` correctly while building Kepler images * Removes the `VERSION` argument from the Dockerfile * Removes the redundant bpftool COPY statement in build/Dockerfile * Addresses issue #1540 Signed-off-by: Vibhu Prashar <[email protected]> Signed-off-by: Sunil Thaha <[email protected]> Co-authored-by: Sunil Thaha <[email protected]>
- Loading branch information
1 parent
7ab6af2
commit 0e22839
Showing
3 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,12 +51,20 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
# NOTE: setting fetch-depth to 0 to retrieve the entire history | ||
# instead of a shallow-clone so that all tags are fetched as well. | ||
# This is necessary for computing the VERSION using `git describe` | ||
fetch-depth: 0 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
image: tonistiigi/binfmt:qemu-v8.1.5 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Quay | ||
if: ${{ inputs.pushImage }} | ||
uses: docker/login-action@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters