Skip to content
Snippets Groups Projects
Verified Commit fc943902 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Kustomize

parent 51e3a2d1
No related branches found
No related tags found
1 merge request!50Add k8s deployment
Pipeline #179549 failed
......@@ -42,6 +42,7 @@ deploy docker image:
image: bitnami/kubectl:latest
script:
- echo $KUBECONFIG | base64 -d > /tmp/kubeconfig
- cd deploy
- sed -i s/IMAGE_TAG/$CI_COMMIT_REF_NAME@$(cat ../DIGESTFILE)/g deployment.yaml
- for file in *; do kubectl --kubeconfig=/tmp/kubeconfig apply -f $file; done
- cd deploy/overlays/production
- kustomize edit set image registry.edugit.org/teckids/team-pr/teckids.org:$(cat ../../../DIGESTFILE)
- kustomize build -o output.yaml
- kubectl --kubeconfig=/tmp/kubeconfig apply -f $output.yaml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment