diff --git a/.woodpecker.yml b/.woodpecker.yml index 76a3c7d..da41eec 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,28 +1,15 @@ -# Generic woodpecker trigger -# Copy to any repo as .woodpecker.yml -# Runs matching pipeline from ppl/pipelines// +# 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"