feat: initial deploy pipeline and target1 host alias
This commit is contained in:
@@ -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
|
||||||
@@ -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.
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
SSH_HOST=prd.poc.mehl.mx
|
||||||
|
SSH_USER=root
|
||||||
Reference in New Issue
Block a user