hopefully now!

This commit is contained in:
Rolf Martin Glomsrud 2024-08-04 01:25:52 +02:00
parent 6e51965ab6
commit 6ac15c9fe0

View file

@ -10,9 +10,8 @@ steps:
- npm install - npm install
- npm run build - npm run build
- mkdir /root/.ssh && chmod 0700 /root/.ssh - mkdir /root/.ssh && chmod 0700 /root/.ssh
- touch /root/.ssh/id_rsa - echo $SSH_KEY | base64 --decode >> /root/.ssh/id_rsa
- echo $SSH_KEY | base64 --decode > /root/.ssh/id_rsa
- chmod 0600 /root/.ssh/id_rsa - chmod 0600 /root/.ssh/id_rsa
- sleep 500000 - ssh-keyscan $REMOTE_IP >> /root/.ssh/known_hosts
- /bin/rsync -avzh ./dist ansible@$REMOTE_IP:/var/www/polsevev/dist - /bin/rsync -avzh ./dist ansible@$REMOTE_IP:/var/www/polsevev/dist
secrets: [ SSH_KEY, remote_ip ] secrets: [ SSH_KEY, remote_ip ]