woodpecker: simple notify pipeline

This commit is contained in:
buenosairesam
2026-01-02 20:28:26 -03:00
parent 56f720ca92
commit c78b9f394c

View File

@@ -1,28 +1,15 @@
# Generic woodpecker trigger # Soleprint Pipeline
# Copy to any repo as .woodpecker.yml # Build happens locally, this just logs deployment status
# Runs matching pipeline from ppl/pipelines/<repo>/
when: when:
event: push - event: push
branch: main - event: manual
steps: steps:
- name: build - name: notify
image: alpine image: alpine
commands: commands:
- apk add --no-cache git openssh-client - echo "=== Soleprint ${CI_COMMIT_SHA:0:7} ==="
- mkdir -p ~/.ssh - echo "Branch: ${CI_COMMIT_BRANCH}"
- echo "$SSH_KEY" | base64 -d > ~/.ssh/id_rsa - echo "Message: ${CI_COMMIT_MESSAGE}"
- chmod 600 ~/.ssh/id_rsa - echo "Build locally with: ./ctrl/deploy-domains.sh standalone --build"
- ssh -o StrictHostKeyChecking=no mariano@mcrn.ar "cd ~/ppl && ./ctrl/run-pipeline.sh ${CI_REPO_NAME} build"
secrets: [ssh_key]
- name: deploy
image: alpine
commands:
- apk add --no-cache openssh-client
- mkdir -p ~/.ssh
- echo "$SSH_KEY" | base64 -d > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ssh -o StrictHostKeyChecking=no mariano@mcrn.ar "cd ~/ppl && ./ctrl/run-pipeline.sh ${CI_REPO_NAME} deploy"
secrets: [ssh_key]