polsevev.dev/.woodpecker/main.yml

17 lines
432 B
YAML
Raw Normal View History

2024-08-03 21:12:30 +00:00
when:
- event: push
branch: master
steps:
- name: build
2024-08-03 22:43:50 +00:00
image: local/builder
2024-08-03 22:32:30 +00:00
2024-08-03 21:12:30 +00:00
commands:
2024-08-03 21:18:04 +00:00
- npm install
- npm run build
2024-08-03 22:32:30 +00:00
- mkdir /root/.ssh && chmod 0700 /root/.ssh
2024-08-03 22:44:51 +00:00
- touch /root/.ssh/id_rsa && echo $SSH_KEY > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
2024-08-03 22:47:08 +00:00
- echo $REMOTE_IP
2024-08-03 22:42:14 +00:00
- /bin/rsync -avzh ./dist ansible@$REMOTE_IP:/var/www/polsevev/dist
2024-08-03 22:50:27 +00:00
secrets: [ SSH_KEY, REMOTE_IP ]