File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 55 env :
66 - IMAGE_REGISTRY=gcr.io/$PROJECT_ID
77 - _GIT_TAG=$_GIT_TAG
8- - IMAGE_EXTRA_TAG_NAMES=$_PULL_BASE_REF
98 - HOME=/root
109substitutions :
1110 _GIT_TAG : ' 0.0.0'
Original file line number Diff line number Diff line change 33# Override VERSION if _GIT_TAG is specified. Strip 10 first characters
44# ('vYYYYMMDD-') from _GIT_TAG in order to get a reproducible version and
55# container image tag
6- VERSION_OVERRIDE=${_GIT_TAG+VERSION=${_GIT_TAG: 10} }
6+ if [ -z " $_GIT_TAG " ]; then
7+ MAKE_VARS=" IMAGE_EXTRA_TAG_NAMES=${_PULL_BASE_REF} "
8+ else
9+ MAKE_VARS=" VERSION=${_GIT_TAG: 10} "
10+ fi
711
812# Authenticate in order to be able to push images
913gcloud auth configure-docker
1014
1115# Build and push images
12- IMAGE_ALL_PLATFORMS=linux/amd64,linux/arm64 make push-all $VERSION_OVERRIDE
16+ IMAGE_ALL_PLATFORMS=linux/amd64,linux/arm64 make push-all $MAKE_VARS
1317
1418go install helm.sh/helm/v3/cmd/
[email protected] 1519
16- make helm-push $VERSION_OVERRIDE
20+ make helm-push $VERSION_OVERRIDE $MAKE_VARS
You can’t perform that action at this time.
0 commit comments