fix: CI: write multi-line ssh key
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
parent
8345479c70
commit
68437d6f53
2
Makefile
2
Makefile
|
@ -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.email "${CI_COMMIT_AUTHOR_EMAIL}"
|
||||||
git config --global user.name "${CI_COMMIT_AUTHOR}"
|
git config --global user.name "${CI_COMMIT_AUTHOR}"
|
||||||
./scripts/zola.sh deploy pages public "${CI_COMMIT_AUTHOR} <${CI_COMMIT_AUTHOR_EMAIL}>"
|
./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 --deploy ${PAGES_DEPLOY_SECRET} pages
|
||||||
./scripts/ci.sh --clean
|
./scripts/ci.sh --clean
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,8 @@ EOF
|
||||||
|
|
||||||
# $1: SSH private key
|
# $1: SSH private key
|
||||||
write_ssh(){
|
write_ssh(){
|
||||||
echo $1 > $SSH_ID_FILE
|
echo > $SSH_ID_FILE
|
||||||
|
echo "$1" >> $SSH_ID_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
set_ssh_remote() {
|
set_ssh_remote() {
|
||||||
|
@ -98,7 +99,7 @@ then
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
set_ssh_remote
|
set_ssh_remote
|
||||||
write_ssh $2
|
write_ssh "$2"
|
||||||
elif match_arg $1 '-c' '--clean'
|
elif match_arg $1 '-c' '--clean'
|
||||||
then
|
then
|
||||||
clean
|
clean
|
||||||
|
|
Loading…
Reference in New Issue