-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the commit SHA tag during building of precompiled image #218
base: main
Are you sure you want to change the base?
Conversation
- opened | ||
- synchronize | ||
branches: | ||
- tagcommittshaimage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test code
@@ -37,17 +49,19 @@ jobs: | |||
id: extract_driver_branch | |||
run: | | |||
# get driver_branch | |||
DRIVER_BRANCH=("535" "550") | |||
DRIVER_BRANCH=("535") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test code
driver_branch_json=$(printf '%s\n' "${DRIVER_BRANCH[@]}" | jq -R . | jq -cs .) | ||
echo "driver_branch=$driver_branch_json" >> $GITHUB_OUTPUT | ||
|
||
# get kernel flavors | ||
KERNEL_FLAVORS=("aws" "azure" "generic" "nvidia" "oracle") | ||
# KERNEL_FLAVORS=("aws" "azure" "generic" "nvidia" "oracle") | ||
KERNEL_FLAVORS=("generic") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test code
kernel_flavors_json=$(printf '%s\n' "${KERNEL_FLAVORS[@]}" | jq -R . | jq -cs .) | ||
echo "kernel_flavors=$kernel_flavors_json" >> $GITHUB_OUTPUT | ||
|
||
# get ubuntu distributions | ||
DIST=("ubuntu22.04" "ubuntu24.04") | ||
# DIST=("ubuntu22.04" "ubuntu24.04") | ||
DIST=("ubuntu22.04") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test code
@@ -90,11 +90,11 @@ pull-signed_ubuntu20.04%: DRIVER_TAG = $(DRIVER_BRANCH) | |||
|
|||
pull-signed_ubuntu22.04%: DIST = ubuntu22.04 | |||
pull-signed_ubuntu22.04%: DRIVER_TAG = $(DRIVER_BRANCH) | |||
pull-signed_ubuntu22.04%: IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST) | |||
pull-signed_ubuntu22.04%: IMAGE_TAG := $(if $(VERSION),$(VERSION)-)$(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMAGE_TAG = does lazy initiliazation
added := to expand the variable IMAGE_TAG :=
if VERSION is non empty add VERSION- (commitsha-)
@@ -389,6 +403,7 @@ jobs: | |||
retention-days: 15 | |||
|
|||
publish-precompiled-image: | |||
if: "!github.event.COMMIT_SHORT_SHA" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not publish in case of dev env
0bd4db8
to
aaefa63
Compare
Signed-off-by: shiva kumar <shivaku@nvidia.com>
aaefa63
to
9195e64
Compare
No description provided.