Skip to content

Commit

Permalink
upd cozystack version
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed Jan 8, 2025
1 parent 58572b5 commit 01d838a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/system/cozystack-controller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ NAMESPACE=cozy-system
include ../../../scripts/common-envs.mk
include ../../../scripts/package.mk

image: image-cozystack-controller
image: image-cozystack-controller update-version

image-cozystack-controller:
docker buildx build -f images/cozystack-controller/Dockerfile ../../.. \
Expand All @@ -18,3 +18,7 @@ image-cozystack-controller:
IMAGE="$(REGISTRY)/cozystack-controller:$(call settag,$(TAG))@$$(yq e '."containerimage.digest"' images/cozystack-controller.json -o json -r)" \
yq -i '.cozystackController.image = strenv(IMAGE)' values.yaml
rm -f images/cozystack-controller.json

update-version:
TAG="$(call settag,$(TAG))" \
yq -i '.cozystackController.cozystackVersion = strenv(TAG)' values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
- name: cozystack-controller
image: "{{ .Values.cozystackController.image }}"
args:
- --cozystack-version={{ .Values.cozystackController.cozystackVersion }}
{{- if .Values.cozystackController.debug }}
- --zap-log-level=debug
{{- else }}
Expand Down
1 change: 1 addition & 0 deletions packages/system/cozystack-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ cozystackController:
image: ghcr.io/aenix-io/cozystack/cozystack-controller:latest@sha256:0638f77f16b778794bd8514a3c5a3c39408a078ad21a2ccc25c5fd8a1f66185f
debug: false
disableTelemetry: false
cozystackVersion: "latest"

0 comments on commit 01d838a

Please sign in to comment.