Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
150c498bfc
|
@ -10,6 +10,8 @@ steps:
|
|||||||
password:
|
password:
|
||||||
from_secret: system_container_registry_password
|
from_secret: system_container_registry_password
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
when:
|
||||||
|
- event: [push, tag]
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: portainer/kubectl-shell:latest
|
image: portainer/kubectl-shell:latest
|
||||||
@ -17,8 +19,8 @@ steps:
|
|||||||
- source: kube_config
|
- source: kube_config
|
||||||
target: KUBE_CONFIG_CONTENT
|
target: KUBE_CONFIG_CONTENT
|
||||||
commands:
|
commands:
|
||||||
- printf "$KUBE_CONFIG_CONTENT" > ~/kubeconfig
|
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||||
- KUBECONFIG=~/kubeconfig
|
- KUBECONFIG=/tmp/kubeconfig
|
||||||
- kubectl get nodes
|
- kubectl get nodes
|
||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
|
Reference in New Issue
Block a user