Skip to content
Snippets Groups Projects

Add k8s deployment

Merged Tom Teichler requested to merge deployment into master
Compare and Show latest version
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
@@ -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
Loading