polsevev.dev/.woodpecker/main.yml
2024-08-04 00:47:08 +02:00

16 lines
397 B
YAML

when:
- event: push
branch: master
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 > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
- echo $REMOTE_IP
- /bin/rsync -avzh ./dist ansible@$REMOTE_IP:/var/www/polsevev/dist