Deploy coulomb-social image tag as string; pin 7067145
Helm --set-string for numeric git SHAs (InvalidImageName fix). Ingress entrypoints web+websecure; values pin first release tag.
This commit is contained in:
parent
2ab6662142
commit
ca804ef148
3 changed files with 5 additions and 4 deletions
4
Makefile
4
Makefile
|
|
@ -278,14 +278,14 @@ check-coulomb-social-image-tag: ## Require an explicit coulomb-social image tag
|
||||||
coulomb-social-dry-run: check-coulomb-social-image-tag ## helm template render for coulomb-social
|
coulomb-social-dry-run: check-coulomb-social-image-tag ## helm template render for coulomb-social
|
||||||
helm template $(COULOMB_SOCIAL_RELEASE) $(COULOMB_SOCIAL_CHART) \
|
helm template $(COULOMB_SOCIAL_RELEASE) $(COULOMB_SOCIAL_CHART) \
|
||||||
-f $(COULOMB_SOCIAL_VALUES) \
|
-f $(COULOMB_SOCIAL_VALUES) \
|
||||||
--set image.tag=$(COULOMB_SOCIAL_IMAGE_TAG) \
|
--set-string image.tag=$(COULOMB_SOCIAL_IMAGE_TAG) \
|
||||||
--namespace $(COULOMB_SOCIAL_NAMESPACE)
|
--namespace $(COULOMB_SOCIAL_NAMESPACE)
|
||||||
|
|
||||||
coulomb-social-deploy: check-production-kubeconfig check-coulomb-social-image-tag ## Deploy / upgrade coulomb-social
|
coulomb-social-deploy: check-production-kubeconfig check-coulomb-social-image-tag ## Deploy / upgrade coulomb-social
|
||||||
kubectl create namespace $(COULOMB_SOCIAL_NAMESPACE) --dry-run=client -o yaml | kubectl apply -f -
|
kubectl create namespace $(COULOMB_SOCIAL_NAMESPACE) --dry-run=client -o yaml | kubectl apply -f -
|
||||||
helm upgrade --install $(COULOMB_SOCIAL_RELEASE) $(COULOMB_SOCIAL_CHART) \
|
helm upgrade --install $(COULOMB_SOCIAL_RELEASE) $(COULOMB_SOCIAL_CHART) \
|
||||||
-f $(COULOMB_SOCIAL_VALUES) \
|
-f $(COULOMB_SOCIAL_VALUES) \
|
||||||
--set image.tag=$(COULOMB_SOCIAL_IMAGE_TAG) \
|
--set-string image.tag=$(COULOMB_SOCIAL_IMAGE_TAG) \
|
||||||
--namespace $(COULOMB_SOCIAL_NAMESPACE) \
|
--namespace $(COULOMB_SOCIAL_NAMESPACE) \
|
||||||
--wait --timeout 5m
|
--wait --timeout 5m
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: forgejo.coulomb.social/coulomb/coulomb-social
|
repository: forgejo.coulomb.social/coulomb/coulomb-social
|
||||||
tag: "pending" # pin to git SHA after first image publish
|
tag: "7067145"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DJANGO_SETTINGS_MODULE: coulomb_social.settings.prod
|
DJANGO_SETTINGS_MODULE: coulomb_social.settings.prod
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@ metadata:
|
||||||
namespace: coulomb-social
|
namespace: coulomb-social
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
|
||||||
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: traefik
|
ingressClassName: traefik
|
||||||
tls:
|
tls:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue