From e49725703ea0edc9ddfe8eb919f54f563dab028e Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 26 Jul 2023 19:08:00 +0200 Subject: [PATCH] add ci --- .woodpecker.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index d4ed56b..e48685d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -3,16 +3,23 @@ steps: image: alpine/git secrets: [ssh_priv_key] commands: - - git config --global user.email ci@gitnet.fr - - git config --global user.name CI - apk add curl - cp README.tpl.md README.md - ./bin/rss -f https://www.deblan.io/RSS >> README.md - - cat README.md + when: + event: [push, deployment, cron] + + push: + image: alpine/git + secrets: [ssh_priv_key] + commands: + - git config --global user.email ci@gitnet.fr + - git config --global user.name CI - git add . - git commit -m "Build ${CI_BUILD_NUMBER}" - eval $(ssh-agent -s) - echo "$SSH_PRIV_KEY" | tr -d '\r' | ssh-add - + - 'echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - git push origin main when: event: [push, deployment, cron]