woodpecker: simple notify pipeline
This commit is contained in:
@@ -1,28 +1,15 @@
|
||||
# Generic woodpecker trigger
|
||||
# Copy to any repo as .woodpecker.yml
|
||||
# Runs matching pipeline from ppl/pipelines/<repo>/
|
||||
# Soleprint Pipeline
|
||||
# Build happens locally, this just logs deployment status
|
||||
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
- event: push
|
||||
- event: manual
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
- name: notify
|
||||
image: alpine
|
||||
commands:
|
||||
- apk add --no-cache git 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} 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]
|
||||
- echo "=== Soleprint ${CI_COMMIT_SHA:0:7} ==="
|
||||
- echo "Branch: ${CI_COMMIT_BRANCH}"
|
||||
- echo "Message: ${CI_COMMIT_MESSAGE}"
|
||||
- echo "Build locally with: ./ctrl/deploy-domains.sh standalone --build"
|
||||
|
||||
Reference in New Issue
Block a user