add deployment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2025-07-30 17:46:04 +02:00
parent 57e9940b3a
commit c31679632b
3 changed files with 95 additions and 2 deletions

View File

@@ -79,14 +79,14 @@ steps:
from_secret: container_registry
tags:
- server-latest
- server-${CI_COMMIT_SHA}
- server-${CI_COMMIT_TAG}
username:
from_secret: container_registry_username
password:
from_secret: container_registry_password
dockerfile: Dockerfile-server
when:
- event: [ push ]
- event: [ tag ]
build-server-for-quay:
depends_on: [generate-dtrack-api, generate-defectdojo]
@@ -106,4 +106,17 @@ steps:
- event: [tag]
deploy:
image: portainer/kubectl-shell:latest
depends_on: [build-server]
environment:
KUBE_CONFIG_CONTENT:
from_secret: kube_config
commands:
- export IMAGE_TAG=$CI_COMMIT_TAG
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
- export KUBECONFIG=/tmp/kubeconfig
- ./deployment/deploy.sh
when:
- event: [tag]