diff --git a/hack/prepare_release.sh b/hack/prepare_release.sh deleted file mode 100755 index 2b0c558a..00000000 --- a/hack/prepare_release.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -set -e - -if [ -e $1 ]; then - echo "Please pass version in the first argument" - echo "Example: $0 0.2.0" - exit 1 -fi - -version=$1 -talos_version=$(awk '/^version:/ {print $2}' packages/core/installer/images/talos/profiles/installer.yaml) - -set -x - -sed -i "/^TAG / s|=.*|= v${version}|" \ - packages/apps/http-cache/Makefile \ - packages/apps/kubernetes/Makefile \ - packages/core/installer/Makefile \ - packages/system/dashboard/Makefile - -sed -i "/^VERSION / s|=.*|= ${version}|" \ - packages/core/Makefile \ - packages/system/Makefile -make -C packages/core fix-chartnames -make -C packages/system fix-chartnames diff --git a/packages/apps/http-cache/Makefile b/packages/apps/http-cache/Makefile index 786ee33e..4a6c8ee7 100644 --- a/packages/apps/http-cache/Makefile +++ b/packages/apps/http-cache/Makefile @@ -1,22 +1,20 @@ -PUSH := 1 -LOAD := 0 -REGISTRY := ghcr.io/aenix-io/cozystack NGINX_CACHE_TAG = v0.1.0 -TAG := v0.3.1 + +include ../../../scripts/common-envs.mk image: image-nginx image-nginx: docker buildx build --platform linux/amd64 --build-arg ARCH=amd64 images/nginx-cache \ --provenance false \ - --tag $(REGISTRY)/nginx-cache:$(NGINX_CACHE_TAG) \ - --tag $(REGISTRY)/nginx-cache:$(NGINX_CACHE_TAG)-$(TAG) \ - --cache-from type=registry,ref=$(REGISTRY)/nginx-cache:$(NGINX_CACHE_TAG) \ + --tag $(REGISTRY)/nginx-cache:$(call settag,$(NGINX_CACHE_TAG)) \ + --tag $(REGISTRY)/nginx-cache:$(call settag,$(NGINX_CACHE_TAG)-$(TAG)) \ + --cache-from type=registry,ref=$(REGISTRY)/nginx-cache:latest \ --cache-to type=inline \ --metadata-file images/nginx-cache.json \ --push=$(PUSH) \ --load=$(LOAD) - echo "$(REGISTRY)/nginx-cache:$(NGINX_CACHE_TAG)" > images/nginx-cache.tag + echo "$(REGISTRY)/nginx-cache:$(call settag,$(NGINX_CACHE_TAG))" > images/nginx-cache.tag update: tag=$$(git ls-remote --tags --sort="v:refname" https://github.com/chrislim2888/IP2Location-C-Library | awk -F'[/^]' 'END{print $$3}') && \ diff --git a/packages/apps/kubernetes/Makefile b/packages/apps/kubernetes/Makefile index 43a830f4..ecefd153 100644 --- a/packages/apps/kubernetes/Makefile +++ b/packages/apps/kubernetes/Makefile @@ -1,19 +1,17 @@ -PUSH := 1 -LOAD := 0 -REGISTRY := ghcr.io/aenix-io/cozystack -TAG := v0.3.1 UBUNTU_CONTAINER_DISK_TAG = v1.29.1 +include ../../../scripts/common-envs.mk + image: image-ubuntu-container-disk image-ubuntu-container-disk: docker buildx build --platform linux/amd64 --build-arg ARCH=amd64 images/ubuntu-container-disk \ --provenance false \ - --tag $(REGISTRY)/ubuntu-container-disk:$(UBUNTU_CONTAINER_DISK_TAG) \ - --tag $(REGISTRY)/ubuntu-container-disk:$(UBUNTU_CONTAINER_DISK_TAG)-$(TAG) \ - --cache-from type=registry,ref=$(REGISTRY)/ubuntu-container-disk:$(UBUNTU_CONTAINER_DISK_TAG) \ + --tag $(REGISTRY)/ubuntu-container-disk:$(call settag,$(UBUNTU_CONTAINER_DISK_TAG)) \ + --tag $(REGISTRY)/ubuntu-container-disk:$(call settag,$(UBUNTU_CONTAINER_DISK_TAG)-$(TAG)) \ + --cache-from type=registry,ref=$(REGISTRY)/ubuntu-container-disk:latest \ --cache-to type=inline \ --metadata-file images/ubuntu-container-disk.json \ --push=$(PUSH) \ --load=$(LOAD) - echo "$(REGISTRY)/ubuntu-container-disk:$(UBUNTU_CONTAINER_DISK_TAG)" > images/ubuntu-container-disk.tag + echo "$(REGISTRY)/ubuntu-container-disk:$(call settag,$(UBUNTU_CONTAINER_DISK_TAG))" > images/ubuntu-container-disk.tag diff --git a/packages/core/Makefile b/packages/core/Makefile deleted file mode 100644 index c5aaa071..00000000 --- a/packages/core/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -VERSION := 0.3.1 - -gen: fix-chartnames - -fix-chartnames: - find . -name Chart.yaml -maxdepth 2 | awk -F/ '{print $$2}' | while read i; do printf "name: cozy-%s\nversion: $(VERSION)\n" "$$i" > "$$i/Chart.yaml"; done diff --git a/packages/core/fluxcd/Chart.yaml b/packages/core/fluxcd/Chart.yaml index 911ef5cc..2e625a16 100644 --- a/packages/core/fluxcd/Chart.yaml +++ b/packages/core/fluxcd/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-fluxcd -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/core/installer/Chart.yaml b/packages/core/installer/Chart.yaml index 5c85bd01..91350467 100644 --- a/packages/core/installer/Chart.yaml +++ b/packages/core/installer/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-installer -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/core/installer/Makefile b/packages/core/installer/Makefile index f93501fb..5e96fb48 100644 --- a/packages/core/installer/Makefile +++ b/packages/core/installer/Makefile @@ -1,11 +1,10 @@ NAME=installer NAMESPACE=cozy-system -PUSH := 1 -LOAD := 0 -REGISTRY := ghcr.io/aenix-io/cozystack -TAG := v0.3.1 + TALOS_VERSION=$(shell awk '/^version:/ {print $$2}' images/talos/profiles/installer.yaml) +include ../../../scripts/common-envs.mk + show: helm template -n $(NAMESPACE) $(NAME) . @@ -24,33 +23,33 @@ image-cozystack: make -C ../../.. repos docker buildx build -f images/cozystack/Dockerfile ../../.. \ --provenance false \ - --tag $(REGISTRY)/cozystack:$(TAG) \ - --cache-from type=registry,ref=$(REGISTRY)/cozystack:$(TAG) \ + --tag $(REGISTRY)/cozystack:$(call settag,$(TAG)) \ + --cache-from type=registry,ref=$(REGISTRY)/cozystack:latest \ --cache-to type=inline \ --metadata-file images/cozystack.json \ --push=$(PUSH) \ --load=$(LOAD) - echo "$(REGISTRY)/cozystack:$(TAG)" > images/cozystack.tag + echo "$(REGISTRY)/cozystack:$(call settag,$(TAG))" > images/cozystack.tag image-talos: test -f ../../../_out/assets/installer-amd64.tar || make talos-installer docker load -i ../../../_out/assets/installer-amd64.tar - docker tag ghcr.io/siderolabs/installer:$(TALOS_VERSION) ghcr.io/aenix-io/cozystack/talos:$(TALOS_VERSION) - docker push ghcr.io/aenix-io/cozystack/talos:$(TALOS_VERSION) + docker tag ghcr.io/siderolabs/installer:$(TALOS_VERSION) ghcr.io/aenix-io/cozystack/talos:$(call settag,$(TALOS_VERSION)) + docker push ghcr.io/aenix-io/cozystack/talos:$(call settag,$(TALOS_VERSION)) image-matchbox: test -f ../../../_out/assets/kernel-amd64 || make talos-kernel test -f ../../../_out/assets/initramfs-metal-amd64.xz || make talos-initramfs docker buildx build -f images/matchbox/Dockerfile ../../.. \ --provenance false \ - --tag $(REGISTRY)/matchbox:$(TAG) \ - --tag $(REGISTRY)/matchbox:$(TALOS_VERSION)-$(TAG) \ - --cache-from type=registry,ref=$(REGISTRY)/matchbox:$(TALOS_VERSION) \ + --tag $(REGISTRY)/matchbox:$(call settag,$(TAG)) \ + --tag $(REGISTRY)/matchbox:$(call settag,$(TALOS_VERSION)-$(TAG)) \ + --cache-from type=registry,ref=$(REGISTRY)/matchbox:latest \ --cache-to type=inline \ --metadata-file images/matchbox.json \ --push=$(PUSH) \ --load=$(LOAD) - echo "$(REGISTRY)/matchbox:$(TALOS_VERSION)" > images/matchbox.tag + echo "$(REGISTRY)/matchbox:$(call settag,$(TALOS_VERSION))" > images/matchbox.tag assets: talos-iso talos-nocloud diff --git a/packages/core/platform/Chart.yaml b/packages/core/platform/Chart.yaml index eea29366..b8ac64c4 100644 --- a/packages/core/platform/Chart.yaml +++ b/packages/core/platform/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-platform -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/Makefile b/packages/system/Makefile index 2b3d9476..9162b1a4 100644 --- a/packages/system/Makefile +++ b/packages/system/Makefile @@ -1,13 +1,12 @@ OUT=../../_out/repos/system -VERSION := 0.3.1 -gen: fix-chartnames +include ../../scripts/common-envs.mk -repo: fix-chartnames +repo: rm -rf "$(OUT)" mkdir -p "$(OUT)" - helm package -d "$(OUT)" $$(find . -mindepth 2 -maxdepth 2 -name Chart.yaml | awk 'sub("/Chart.yaml", "")') + helm package -d "$(OUT)" $$(find . -mindepth 2 -maxdepth 2 -name Chart.yaml | awk 'sub("/Chart.yaml", "")') --version $(VERSION) cd "$(OUT)" && helm repo index . fix-chartnames: - find . -name Chart.yaml -maxdepth 2 | awk -F/ '{print $$2}' | while read i; do printf "name: cozy-%s\nversion: $(VERSION)\n" "$$i" > "$$i/Chart.yaml"; done + find . -name Chart.yaml -maxdepth 2 | awk -F/ '{print $$2}' | while read i; do sed -i "s/^name: .*/name: cozy-$$i/" "$$i/Chart.yaml"; done diff --git a/packages/system/capi-operator/Chart.yaml b/packages/system/capi-operator/Chart.yaml index b40a1502..459e461f 100644 --- a/packages/system/capi-operator/Chart.yaml +++ b/packages/system/capi-operator/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-capi-operator -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/capi-providers/Chart.yaml b/packages/system/capi-providers/Chart.yaml index 2462f7a8..96501203 100644 --- a/packages/system/capi-providers/Chart.yaml +++ b/packages/system/capi-providers/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-capi-providers -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/cert-manager-issuers/Chart.yaml b/packages/system/cert-manager-issuers/Chart.yaml index 403f4ad9..e09e653b 100644 --- a/packages/system/cert-manager-issuers/Chart.yaml +++ b/packages/system/cert-manager-issuers/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-cert-manager-issuers -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/cert-manager/Chart.yaml b/packages/system/cert-manager/Chart.yaml index b4db70e2..0fa32cb6 100644 --- a/packages/system/cert-manager/Chart.yaml +++ b/packages/system/cert-manager/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-cert-manager -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/cilium/Chart.yaml b/packages/system/cilium/Chart.yaml index ec63f6d1..afa81bc4 100644 --- a/packages/system/cilium/Chart.yaml +++ b/packages/system/cilium/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-cilium -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/clickhouse-operator/Chart.yaml b/packages/system/clickhouse-operator/Chart.yaml index 44e92cc8..cfe68887 100644 --- a/packages/system/clickhouse-operator/Chart.yaml +++ b/packages/system/clickhouse-operator/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-clickhouse-operator -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/dashboard/Chart.yaml b/packages/system/dashboard/Chart.yaml index a0bd5a25..32ceb646 100644 --- a/packages/system/dashboard/Chart.yaml +++ b/packages/system/dashboard/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-dashboard -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/dashboard/Makefile b/packages/system/dashboard/Makefile index 5336007d..7172288b 100644 --- a/packages/system/dashboard/Makefile +++ b/packages/system/dashboard/Makefile @@ -1,10 +1,7 @@ NAME=dashboard NAMESPACE=cozy-$(NAME) -PUSH := 1 -LOAD := 0 -REPOSITORY := ghcr.io/aenix-io/cozystack -TAG := v0.3.1 +include ../../../scripts/common-envs.mk include ../../../scripts/package-system.mk update: update-chart update-dockerfiles @@ -30,21 +27,21 @@ update-dockerfiles: image-dashboard: docker buildx build images/dashboard \ --provenance false \ - --tag $(REPOSITORY)/dashboard:$(TAG) \ - --cache-from type=registry,ref=$(REPOSITORY)/dashboard:$(TAG) \ + --tag $(REGISTRY)/dashboard:$(call settag,$(TAG)) \ + --cache-from type=registry,ref=$(REGISTRY)/dashboard:latest \ --cache-to type=inline \ --metadata-file images/dashboard.json \ --push=$(PUSH) \ --load=$(LOAD) - echo "$(REPOSITORY)/dashboard:$(TAG)" > images/dashboard.tag + echo "$(REGISTRY)/dashboard:$(call settag,$(TAG))" > images/dashboard.tag image-kubeapps-apis: docker buildx build images/kubeapps-apis \ --provenance false \ - --tag $(REPOSITORY)/kubeapps-apis:$(TAG) \ - --cache-from type=registry,ref=$(REPOSITORY)/kubeapps-apis:$(TAG) \ + --tag $(REGISTRY)/kubeapps-apis:$(call settag,$(TAG)) \ + --cache-from type=registry,ref=$(REGISTRY)/kubeapps-apis:latest \ --cache-to type=inline \ --metadata-file images/kubeapps-apis.json \ --push=$(PUSH) \ --load=$(LOAD) - echo "$(REPOSITORY)/kubeapps-apis:$(TAG)" > images/kubeapps-apis.tag + echo "$(REGISTRY)/kubeapps-apis:$(call settag,$(TAG))" > images/kubeapps-apis.tag diff --git a/packages/system/grafana-oncall/Chart.yaml b/packages/system/grafana-oncall/Chart.yaml index 0b958e70..0f24a040 100644 --- a/packages/system/grafana-oncall/Chart.yaml +++ b/packages/system/grafana-oncall/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-grafana-oncall -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/grafana-operator/Chart.yaml b/packages/system/grafana-operator/Chart.yaml index c90e34bc..d8cd357e 100644 --- a/packages/system/grafana-operator/Chart.yaml +++ b/packages/system/grafana-operator/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-grafana-operator -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/ingress-nginx/Chart.yaml b/packages/system/ingress-nginx/Chart.yaml index 6b57794a..a78eaff6 100644 --- a/packages/system/ingress-nginx/Chart.yaml +++ b/packages/system/ingress-nginx/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-ingress-nginx -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/kafka-operator/Chart.yaml b/packages/system/kafka-operator/Chart.yaml index 450e9d2b..d669dddc 100644 --- a/packages/system/kafka-operator/Chart.yaml +++ b/packages/system/kafka-operator/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-kafka-operator -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/kamaji-etcd/Chart.yaml b/packages/system/kamaji-etcd/Chart.yaml index 92a2bb2d..068ef0d0 100644 --- a/packages/system/kamaji-etcd/Chart.yaml +++ b/packages/system/kamaji-etcd/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-kamaji-etcd -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/kamaji/Chart.yaml b/packages/system/kamaji/Chart.yaml index c417e9e3..c87b43fa 100644 --- a/packages/system/kamaji/Chart.yaml +++ b/packages/system/kamaji/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-kamaji -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/kubeovn/Chart.yaml b/packages/system/kubeovn/Chart.yaml index b7433d36..16cb9dc5 100644 --- a/packages/system/kubeovn/Chart.yaml +++ b/packages/system/kubeovn/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-kubeovn -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/kubevirt-cdi-operator/Chart.yaml b/packages/system/kubevirt-cdi-operator/Chart.yaml index e2c678e2..bb06b1bb 100644 --- a/packages/system/kubevirt-cdi-operator/Chart.yaml +++ b/packages/system/kubevirt-cdi-operator/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-kubevirt-cdi-operator -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/kubevirt-cdi/Chart.yaml b/packages/system/kubevirt-cdi/Chart.yaml index b45b98c3..ebf3fd27 100644 --- a/packages/system/kubevirt-cdi/Chart.yaml +++ b/packages/system/kubevirt-cdi/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-kubevirt-cdi -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/kubevirt-csi-node/Chart.yaml b/packages/system/kubevirt-csi-node/Chart.yaml index 97c633b1..5ff63b95 100644 --- a/packages/system/kubevirt-csi-node/Chart.yaml +++ b/packages/system/kubevirt-csi-node/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-kubevirt-csi-node -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/kubevirt-operator/Chart.yaml b/packages/system/kubevirt-operator/Chart.yaml index 9e323d18..ead27e46 100644 --- a/packages/system/kubevirt-operator/Chart.yaml +++ b/packages/system/kubevirt-operator/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-kubevirt-operator -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/kubevirt/Chart.yaml b/packages/system/kubevirt/Chart.yaml index 31990646..6a352088 100644 --- a/packages/system/kubevirt/Chart.yaml +++ b/packages/system/kubevirt/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-kubevirt -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/linstor/Chart.yaml b/packages/system/linstor/Chart.yaml index ac5fa842..67e5fa7a 100644 --- a/packages/system/linstor/Chart.yaml +++ b/packages/system/linstor/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-linstor -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/mariadb-operator/Chart.yaml b/packages/system/mariadb-operator/Chart.yaml index c9914851..0cddc7f6 100644 --- a/packages/system/mariadb-operator/Chart.yaml +++ b/packages/system/mariadb-operator/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-mariadb-operator -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/metallb/Chart.yaml b/packages/system/metallb/Chart.yaml index 9e175734..143e4638 100644 --- a/packages/system/metallb/Chart.yaml +++ b/packages/system/metallb/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-metallb -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/monitoring/Chart.yaml b/packages/system/monitoring/Chart.yaml index 05aa5f64..6923af7e 100644 --- a/packages/system/monitoring/Chart.yaml +++ b/packages/system/monitoring/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-monitoring -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/piraeus-operator/Chart.yaml b/packages/system/piraeus-operator/Chart.yaml index 0bf50022..40b3fce2 100644 --- a/packages/system/piraeus-operator/Chart.yaml +++ b/packages/system/piraeus-operator/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-piraeus-operator -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/postgres-operator/Chart.yaml b/packages/system/postgres-operator/Chart.yaml index c752bd57..573ba575 100644 --- a/packages/system/postgres-operator/Chart.yaml +++ b/packages/system/postgres-operator/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-postgres-operator -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/rabbitmq-operator/Chart.yaml b/packages/system/rabbitmq-operator/Chart.yaml index 3db87f8e..d8992888 100644 --- a/packages/system/rabbitmq-operator/Chart.yaml +++ b/packages/system/rabbitmq-operator/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-rabbitmq-operator -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/redis-operator/Chart.yaml b/packages/system/redis-operator/Chart.yaml index b5d1574e..e0b05e7d 100644 --- a/packages/system/redis-operator/Chart.yaml +++ b/packages/system/redis-operator/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-redis-operator -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/telepresence/Chart.yaml b/packages/system/telepresence/Chart.yaml index 4047dedd..8a9c3124 100644 --- a/packages/system/telepresence/Chart.yaml +++ b/packages/system/telepresence/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-telepresence -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/packages/system/victoria-metrics-operator/Chart.yaml b/packages/system/victoria-metrics-operator/Chart.yaml index 6664b11a..7f34b92b 100644 --- a/packages/system/victoria-metrics-operator/Chart.yaml +++ b/packages/system/victoria-metrics-operator/Chart.yaml @@ -1,2 +1,3 @@ +apiVersion: v2 name: cozy-victoria-metrics-operator -version: 0.3.1 +version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process diff --git a/scripts/common-envs.mk b/scripts/common-envs.mk new file mode 100644 index 00000000..6738677d --- /dev/null +++ b/scripts/common-envs.mk @@ -0,0 +1,10 @@ +REGISTRY := ghcr.io/aenix-io/cozystack +PUSH := 1 +LOAD := 0 +VERSION = $(patsubst v%,%,$(shell git describe --tags --abbrev=0)) +TAG = $(shell git describe --tags --exact-match 2>/dev/null || echo latest) + +# Returns 'latest' if the git tag is not assigned, otherwise returns the provided value +define settag +$(if $(filter $(TAG),latest),latest,$(1)) +endef