commit 91767279e6d83388f4398586e21b330ba7fa4378 Author: Max Mehl Date: Fri Sep 18 20:11:55 2026 +0200 feat: initial deploy pipeline and target1 host alias diff --git a/.woodpecker/deploy.yaml b/.woodpecker/deploy.yaml new file mode 100644 index 0000000..3eca423 --- /dev/null +++ b/.woodpecker/deploy.yaml @@ -0,0 +1,15 @@ +steps: + - name: show-deployment-request + image: alpine:3.20 + commands: + - echo "Deployment requested:" + - echo " ARTIFACT=$ARTIFACT" + - echo " TARGET=$TARGET" + - test -n "$ARTIFACT" || (echo "ERROR: ARTIFACT param missing" && exit 1) + - test -n "$TARGET" || (echo "ERROR: TARGET param missing" && exit 1) + - test -f "hosts/$TARGET" || (echo "ERROR: unknown host alias '$TARGET'" && exit 1) + - echo "Resolved host alias '$TARGET':" + - cat "hosts/$TARGET" + +when: + event: deployment diff --git a/README.md b/README.md new file mode 100644 index 0000000..b5afde0 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# poc-deployment + +Central deployment repository for the Woodpecker CI PoC. Contains only generic deployment logic and host aliases, no per-service configuration. See `concept.md` and `plan.md` in the `repo2cicd2deploy` repository for the full design. + +- `.woodpecker/deploy.yaml` - pipeline triggered by service repositories via a `deployment` event. +- `hosts/` - alias files resolving a logical target name (e.g. `target1`) to actual SSH connection details. Only pre-defined aliases are accepted. diff --git a/hosts/target1 b/hosts/target1 new file mode 100644 index 0000000..3814056 --- /dev/null +++ b/hosts/target1 @@ -0,0 +1,2 @@ +SSH_HOST=prd.poc.mehl.mx +SSH_USER=root