From 420e16f6e1c2a2339af12534c68ebb14faaf5205 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 8 Feb 2026 12:58:57 +0100 Subject: [PATCH] added automatic deployment to stage --- .woodpecker.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index e6eeb23..5acb435 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,5 +1,12 @@ -steps: - - name: build-image +when: + - branch: main + event: push + +pipeline: + build-docker-image: + name: build-image + when: + - event: push # This plugin handles the DinD complexity for you image: woodpeckerci/plugin-docker-buildx privileged: true # Required for the plugin to start its internal Docker engine @@ -23,3 +30,12 @@ steps: build_args: COMMIT_SHA: ${CI_COMMIT_SHA:0:7} COMMIT_MESSAGE: ${CI_COMMIT_MESSAGE} + + deploy-to-stage: + image: curlimages/curl:latest + commands: + - | + curl -H "Authorization: Bearer ${COOLIFY_STAGE_DEPLOY_TOKEN}" \ + -X POST \ + -F "image=registry.coolify1.workaround.org/debshots:${CI_COMMIT_SHA:0:7}" \ + "${COOLIFY_STAGE_DEPLOY_WEBHOOK}"