From 65b35c990c8d2f3922135cf0136ea1f18a445e54 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 23 Jan 2024 13:40:19 +0100 Subject: [PATCH] add ci to deploy on gitnet.page --- .woodpecker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 305b7fd..7353a01 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -11,7 +11,10 @@ steps: commit: image: alpine/git + secrets: [ssh_private_key] commands: + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - git config --global user.email ci@gitnet.fr - git config --global user.name CI - git commit -m build -a @@ -21,9 +24,6 @@ steps: - mv site /tmp/ - rm * -fr - mv /tmp/site/* . - - eval $(ssh-agent -s) - - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - - mkdir ~/.ssh && ~/.ssh/known_hosts && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config && chmod -R 400 ~/.ssh - git add . - git commit -m "Build ${CI_BUILD_NUMBER}" - git push upstream pages