i forgot to mention secrets

This commit is contained in:
Rolf Martin Glomsrud 2024-08-04 00:54:24 +02:00
parent 6fc7af6488
commit 0f6b1b1b7b

View file

@ -11,6 +11,6 @@ steps:
- 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 > /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
- echo $REMOTE_IP - sleep 50000
- /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 ]