File tree 3 files changed +5
-7
lines changed
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -277,12 +277,12 @@ artifacts: kustomize helm
277
277
$(KUSTOMIZE ) build config/default -o artifacts/manifests.yaml
278
278
@$(call clean-manifests)
279
279
# Update the image tag and policy
280
- $(YQ ) e ' .image.repository = "$(IMAGE_REPO)" | .image.tag = "$(GIT_TAG)" | .image.pullPolicy = "IfNotPresent"' -i charts/lws/values.yaml
280
+ $(YQ ) e ' .image.manager. repository = "$(IMAGE_REPO)" | .image.manager. tag = "$(GIT_TAG)" | .image.manager .pullPolicy = "IfNotPresent"' -i charts/lws/values.yaml
281
281
# create the package. TODO: consider signing it
282
282
$(HELM ) package --version $(GIT_TAG ) --app-version $(GIT_TAG ) charts/lws -d artifacts/
283
283
mv artifacts/lws-$(GIT_TAG ) .tgz artifacts/lws-chart-$(GIT_TAG ) .tgz
284
284
# Revert the image changes
285
- $(YQ ) e ' .image.repository = "$(IMAGE_REGISTRY)/$(IMAGE_NAME)" | del(.image.tag) | .image.pullPolicy = "Always"' -i charts/lws/values.yaml
285
+ $(YQ ) e ' .image.manager. repository = "$(IMAGE_REGISTRY)/$(IMAGE_NAME)" | del(.image.manager. tag) | .image.manager .pullPolicy = "Always"' -i charts/lws/values.yaml
286
286
287
287
288
288
.PHONY : prometheus
Original file line number Diff line number Diff line change 15
15
# tag, if defined will use the given image tag, else Chart.AppVersion will be used
16
16
tag : main
17
17
pullPolicy : IfNotPresent
18
- repository : us-central1-docker.pkg.dev/k8s-staging-images/lws/lws
19
- pullPolicy : Always
20
18
podAnnotations : {}
21
19
podSecurityContext :
22
20
runAsNonRoot : true
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ set -o pipefail
20
20
21
21
DEST_CHART_DIR=${DEST_CHART_DIR:- bin/ }
22
22
23
- EXTRA_TAG=${EXTRA_TAG:- $(git branch --show-current)}
23
+ EXTRA_TAG=${EXTRA_TAG:- $(git branch --show-current)}
24
24
GIT_TAG=${GIT_TAG:- $(git describe --tags --dirty --always)}
25
25
26
26
STAGING_IMAGE_REGISTRY=${STAGING_IMAGE_REGISTRY:- us-central1-docker.pkg.dev/ k8s-staging-images}
@@ -46,11 +46,11 @@ default_image_repo=$(${YQ} ".image.repository" charts/lws/values.yaml)
46
46
readonly default_image_repo
47
47
48
48
# Update the image repo, tag and policy
49
- ${YQ} e " .image.repository = \" ${image_repository} \" | .image.tag = \" ${chart_version} \" | .image.pullPolicy = \" IfNotPresent\" " -i charts/lws/values.yaml
49
+ ${YQ} e " .image.manager. repository = \" ${image_repository} \" | .image.manager. tag = \" ${chart_version} \" | .image.manager .pullPolicy = \" IfNotPresent\" " -i charts/lws/values.yaml
50
50
51
51
${HELM} package --version " ${chart_version} " --app-version " ${chart_version} " charts/lws -d " ${DEST_CHART_DIR} "
52
52
53
53
# Revert the image changes
54
- ${YQ} e " .image.repository = \" ${default_image_repo} \" | .image.tag = \" main\" | .image.pullPolicy = \" Always\" " -i charts/lws/values.yaml
54
+ ${YQ} e " .image.manager. repository = \" ${default_image_repo} \" | .image.manager. tag = \" main\" | .image.manager .pullPolicy = \" Always\" " -i charts/lws/values.yaml
55
55
56
56
${HELM} push " bin/lws-${chart_version} .tgz" " oci://${HELM_CHART_REPO} "
You can’t perform that action at this time.
0 commit comments