woodpecker #99

This commit is contained in:
Rolf Martin Glomsrud 2024-08-04 00:38:56 +02:00
parent 75491a3f7c
commit 2278272c15

View file

@ -9,10 +9,7 @@ steps:
commands: commands:
- npm install - npm install
- npm run build - npm run build
- apt update
- apt upgrade
- mkdir /root/.ssh && chmod 0700 /root/.ssh - 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 - touch /root/.ssh/id_rsa && echo $SSH_KEY > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
- apt -y install rsync
- rsync -avzh ./dist ansible@$REMOTE_IP:/var/www/polsevev/dist - rsync -avzh ./dist ansible@$REMOTE_IP:/var/www/polsevev/dist