15 lines
349 B
YAML
15 lines
349 B
YAML
|
steps:
|
||
|
deploy:
|
||
|
image: portainer/kubectl-shell:latest
|
||
|
secrets:
|
||
|
- source: kube_config
|
||
|
target: KUBE_CONFIG_CONTENT
|
||
|
commands:
|
||
|
- export IMAGE_TAG=$CI_COMMIT_TAG
|
||
|
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||
|
- export KUBECONFIG=/tmp/kubeconfig
|
||
|
- ./deployment/deploy.sh
|
||
|
when:
|
||
|
- event: tag
|
||
|
|