From 9afa68a1116274fce7d04be17d9743999a3d8f51 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sat, 29 Nov 2025 20:22:40 +0100 Subject: [PATCH] deployment 2 --- .woodpecker/build.yml | 2 +- .woodpecker/deploy.yml | 2 +- .woodpecker/predeploy.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 61d4b70..50dfff8 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -19,7 +19,7 @@ steps: auto_tag: true dockerfile: apps/${APP}/Dockerfile when: - event: [push, tag] + event: [tag] ref: exclude: - refs/tags/*-configchange diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml index 2638309..ffaca26 100644 --- a/.woodpecker/deploy.yml +++ b/.woodpecker/deploy.yml @@ -17,7 +17,7 @@ steps: - printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig - export KUBECONFIG=/tmp/kubeconfig - echo "Deploying application ${APP} ($IMAGE) to namespace $NAMESPACE" - - cat deployment/${APP}/deployment.yaml | sed "s,%IMAGE%,$IMAGE,g" | kubectl apply -n $NAMESPACE -f - + - cat deployment/${APP}-deployment.yaml | sed "s,%IMAGE%,$IMAGE,g" | kubectl apply -n $NAMESPACE -f - when: event: [tag] ref: diff --git a/.woodpecker/predeploy.yml b/.woodpecker/predeploy.yml index d673f24..5b87403 100644 --- a/.woodpecker/predeploy.yml +++ b/.woodpecker/predeploy.yml @@ -32,6 +32,7 @@ steps: --from-file=scenes=config/scenes.yaml --namespace=$NAMESPACE --dry-run=client -o yaml | kubectl apply -f - + - kubectl apply -f deployment/configmap.yaml -n $NAMESPACE when: event: [tag]