deployment

This commit is contained in:
2025-10-23 19:24:07 +02:00
parent c4ff4efeba
commit f054bacfe0
3 changed files with 117 additions and 0 deletions

30
.woodpecker.yml Normal file
View File

@@ -0,0 +1,30 @@
steps:
build:
image: plugins/kaniko
settings:
repo: ${FORGE_NAME}/${CI_REPO}
registry:
from_secret: container_registry
tags: latest,${CI_COMMIT_SHA}
username:
from_secret: container_registry_username
password:
from_secret: container_registry_password
dockerfile: Dockerfile
when:
- event: [push,tag]
deploy:
image: portainer/kubectl-shell:latest
environment:
KUBE_CONFIG_CONTENT:
from_secret: kube_config
commands:
- export IMAGE_TAG=$CI_COMMIT_SHA
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
- export KUBECONFIG=/tmp/kubeconfig
- ./deployment/deploy.sh
when:
- event: [push,tag]