polsevev.dev/.woodpecker/main.yml
2024-08-04 01:18:34 +02:00

17 lines
437 B
YAML

when:
- event: push
branch: testing
steps:
- name: build
image: local/builder
commands:
- npm install
- npm run build
- mkdir /root/.ssh && chmod 0700 /root/.ssh
- touch /root/.ssh/id_rsa
- echo $SSH_KEY | base64 --decode > /root/.ssh/id_rsa
- chmod 0600 /root/.ssh/id_rsa
- /bin/rsync -avzh ./dist ansible@$REMOTE_IP:/var/www/polsevev/dist
secrets: [ SSH_KEY, remote_ip ]