Update woodpecker config

This commit is contained in:
Alexander Navarro 2023-11-25 16:53:22 -03:00
parent 8a0c213c09
commit 2a99784bfb

View file

@ -10,6 +10,8 @@ clone:
steps:
build-and-publish:
image: node:20-alpine
secrets:
- CODEBERG_SSH_KEY
commands:
- apk add git
- corepack enable
@ -24,4 +26,8 @@ steps:
EOL
- git config --global user.email "woodpecker@bot.net"
- git config --global user.name "woodpecker-bot"
- mkdir -p $HOME/.ssh
- ssh-keyscan -t rsa codeberg.org >> $HOME/.ssh/known_hosts
- echo "$CODEBERG_SSH_KEY" > $HOME/.ssh/id_rsa
- chmod 0600 $HOME/.ssh/id_rsa
- pnpm run push-to-pages