feat(vergabe): deploy from Forgejo OCI registry only
Switch helm values and Makefile image gates to forgejo.coulomb.social; retire gitea.coulomb.social for vergabe-teilnahme production pulls.
This commit is contained in:
parent
4c32a65edd
commit
e9f406da2a
4 changed files with 33 additions and 19 deletions
22
Makefile
22
Makefile
|
|
@ -5,6 +5,8 @@ VERGABE_RELEASE ?= vergabe-teilnahme
|
|||
VERGABE_NAMESPACE ?= vergabe-teilnahme
|
||||
VERGABE_CHART ?= charts/vergabe-teilnahme
|
||||
VERGABE_VALUES ?= helm/vergabe-teilnahme-values.yaml
|
||||
VERGABE_IMAGE_REPOSITORY ?= forgejo.coulomb.social/coulomb/vergabe-teilnahme
|
||||
VERGABE_IMAGE_TAG ?=
|
||||
VERGABE_INGRESS ?= manifests/vergabe-teilnahme-ingress.yaml
|
||||
|
||||
VERGABE_DB_SECRET ?= vergabe-app-credentials
|
||||
|
|
@ -68,6 +70,8 @@ CORE_HUB_IMAGE_TAG ?=
|
|||
CORE_HUB_BASE_URL ?= https://hub.coulomb.social
|
||||
CORE_HUB_KUBECONFIG ?= $(PRODUCTION_KUBECONFIG)
|
||||
VERGABE_KUBECONFIG ?= $(PRODUCTION_KUBECONFIG)
|
||||
VERGABE_IMAGE_REF = $(VERGABE_IMAGE_REPOSITORY):$(VERGABE_IMAGE_TAG)
|
||||
VERGABE_IMAGE_SET_ARG = $(if $(strip $(VERGABE_IMAGE_TAG)),--set image.repository=$(VERGABE_IMAGE_REPOSITORY) --set image.tag=$(VERGABE_IMAGE_TAG),)
|
||||
CORE_HUB_IMAGE_REF = $(CORE_HUB_IMAGE_REPOSITORY):$(CORE_HUB_IMAGE_TAG)
|
||||
CORE_HUB_IMAGE_SET_ARG = $(if $(strip $(CORE_HUB_IMAGE_TAG)),--set image.tag=$(CORE_HUB_IMAGE_TAG),)
|
||||
|
||||
|
|
@ -157,15 +161,25 @@ apps-pg-backup: check-production-kubeconfig ## Logical pg_dump + age encrypt + N
|
|||
|
||||
##@ Vergabe Teilnahme
|
||||
|
||||
vergabe-dry-run: ## helm template render (no apply) for inspection
|
||||
check-vergabe-image-tag: ## Require an explicit vergabe-teilnahme image tag for production deploys
|
||||
@test -n "$(VERGABE_IMAGE_TAG)" || { \
|
||||
echo "Set VERGABE_IMAGE_TAG=<sha> for vergabe production deploys." >&2; \
|
||||
echo "Example: VERGABE_IMAGE_TAG=1061f3e make vergabe-deploy" >&2; \
|
||||
exit 1; \
|
||||
}
|
||||
|
||||
check-vergabe-image: check-vergabe-image-tag ## Verify the vergabe OCI image exists on Forgejo before deploy
|
||||
tools/check-oci-image.sh "$(VERGABE_IMAGE_REF)"
|
||||
|
||||
vergabe-dry-run: check-vergabe-image-tag ## helm template render (no apply) for inspection
|
||||
helm template $(VERGABE_RELEASE) $(VERGABE_CHART) \
|
||||
--namespace $(VERGABE_NAMESPACE) \
|
||||
-f $(VERGABE_VALUES)
|
||||
-f $(VERGABE_VALUES) $(VERGABE_IMAGE_SET_ARG)
|
||||
|
||||
vergabe-deploy: check-production-kubeconfig ## Deploy / upgrade vergabe-teilnahme Helm release
|
||||
vergabe-deploy: check-production-kubeconfig check-vergabe-image ## Deploy / upgrade vergabe-teilnahme Helm release
|
||||
KUBECONFIG="$(VERGABE_KUBECONFIG)" helm upgrade --install $(VERGABE_RELEASE) $(VERGABE_CHART) \
|
||||
--namespace $(VERGABE_NAMESPACE) --create-namespace \
|
||||
-f $(VERGABE_VALUES) --wait --timeout 3m
|
||||
-f $(VERGABE_VALUES) $(VERGABE_IMAGE_SET_ARG) --wait --timeout 3m
|
||||
|
||||
vergabe-ingress-deploy: ## Apply the vergabe-teilnahme ingress (whywhynot.de)
|
||||
kubectl apply -f $(VERGABE_INGRESS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue