fix: CI: write multi-line ssh key
ci/woodpecker/push/woodpecker Pipeline failed Details

pull/6/head
Aravinth Manivannan 2022-04-16 12:37:18 +05:30
parent 8345479c70
commit 68437d6f53
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,7 @@ ci-deploy: ## Deploy from CI/CD. Only call from within CI
git config --global user.email "${CI_COMMIT_AUTHOR_EMAIL}"
git config --global user.name "${CI_COMMIT_AUTHOR}"
./scripts/zola.sh deploy pages public "${CI_COMMIT_AUTHOR} <${CI_COMMIT_AUTHOR_EMAIL}>"
./scripts/ci.sh --init ${HOSTEA_WRITE_DEPLOY_KEY}
./scripts/ci.sh --init "$$HOSTEA_WRITE_DEPLOY_KEY"
./scripts/ci.sh --deploy ${PAGES_DEPLOY_SECRET} pages
./scripts/ci.sh --clean

View File

@ -46,7 +46,8 @@ EOF
# $1: SSH private key
write_ssh(){
echo $1 > $SSH_ID_FILE
echo > $SSH_ID_FILE
echo "$1" >> $SSH_ID_FILE
}
set_ssh_remote() {
@ -98,7 +99,7 @@ then
exit -1
fi
set_ssh_remote
write_ssh $2
write_ssh "$2"
elif match_arg $1 '-c' '--clean'
then
clean