File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 25
25
args :
26
26
- inferencepool-helm-chart-push
27
27
env :
28
- - GIT_TAG=$_GIT_TAG
29
28
- EXTRA_TAG=$_PULL_BASE_REF
30
29
- GOTOOLCHAIN=auto
31
30
- name : gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240718-5ef92b5c36
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ set -o pipefail
21
21
DEST_CHART_DIR=${DEST_CHART_DIR:- bin/ }
22
22
23
23
EXTRA_TAG=${EXTRA_TAG:- $(git branch --show-current)}
24
- GIT_TAG =${GIT_TAG :- $(git tag | sort | grep -v rc | tail -n1)-$(git describe --tags --dirty --always) }
24
+ CHART_VERSION =${CHART_VERSION :- " v0 " }
25
25
26
26
STAGING_IMAGE_REGISTRY=${STAGING_IMAGE_REGISTRY:- us-central1-docker.pkg.dev/ k8s-staging-images}
27
27
IMAGE_REGISTRY=${IMAGE_REGISTRY:- ${STAGING_IMAGE_REGISTRY} / gateway-api-inference-extension}
@@ -32,9 +32,10 @@ HELM=${HELM:-./bin/helm}
32
32
33
33
readonly semver_regex=' ^v([0-9]+)(\.[0-9]+){1,2}$'
34
34
35
- chart_version=${GIT_TAG }
35
+ chart_version=${CHART_VERSION }
36
36
if [[ ${EXTRA_TAG} =~ ${semver_regex} ]]
37
37
then
38
+ # This is a release branch, use the release version
38
39
${YQ} -i ' .inferenceExtension.image.tag=strenv(EXTRA_TAG)' config/charts/inferencepool/values.yaml
39
40
chart_version=${EXTRA_TAG}
40
41
fi
You can’t perform that action at this time.
0 commit comments