diff --git a/.woodpecker.yml b/.woodpecker.yml index 3ab16de..77c8099 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -13,3 +13,21 @@ steps: dockerfile: Dockerfile when: - event: [push, tag] + + deploy: + image: portainer/kubectl-shell:latest + secrets: + - source: kube_config + target: KUBE_CONFIG_CONTENT + - source: encryption_key + target: ENCRYPTION_KEY + - source: secrets_checksum + target: MD5_CHECKSUM + commands: + - export IMAGE_TAG=$CI_COMMIT_TAG + - printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig + - export KUBECONFIG=/tmp/kubeconfig + - ./deployment/deploy.sh + when: + - event: tag +