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
+ 9
2
Compare changes
  • Side-by-side
  • Inline
+ 9
2
@@ -12,9 +12,16 @@ deploy docker image:
- teckids-trusted
image: bitnami/kubectl:latest
script:
- echo $KUBECONFIG | base64 -d > /.kube/config
- sleep 30000000
- echo $KUBECONFIG | base64 -d > /tmp/kubeconfig
- export KUBE_CONFIG_PATH=/tmp/kubeconfig
- ls /home/
- ls /etc/kubernetes
- ls -lha /root/
- id
- getent passwd
- cd deploy
- sed -i s/IMAGE_TAG/$CI_COMMIT_REF_NAME@$(cat ../DIGESTFILE)/g deployment.yaml
- cat deployment.yaml
- kubectl --kubeconfig=/.kube/config get pods
- kubectl get pods
# - for file in *; do kubectl --kubeconfig=../.kube/config apply -f $file; done
Loading