mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-23 00:35:12 +00:00
update deployment
This commit is contained in:
parent
1250daee85
commit
07e01b63c4
@ -9,11 +9,12 @@ pipeline:
|
|||||||
- dpkg -i hugo_extended_$${HUGO_VERSION}_Linux-64bit.deb
|
- dpkg -i hugo_extended_$${HUGO_VERSION}_Linux-64bit.deb
|
||||||
- hugo
|
- hugo
|
||||||
- echo "Deploying new version"
|
- echo "Deploying new version"
|
||||||
|
- mkdir -p /root/.ssh
|
||||||
- ssh-keygen -R $M2_HOST
|
- ssh-keygen -R $M2_HOST
|
||||||
- echo $M2_DEPLOY_KEY > privkey
|
- echo $M2_DEPLOY_KEY > /root/.ssh/privkey
|
||||||
- scp -i privkey -r public root@$M2_HOST:/var/www/m2.nz/
|
- scp -i /root/.ssh/privkey -r public root@$M2_HOST:/var/www/m2.nz/
|
||||||
- ssh -i privkey root@M2_HOST 'sudo systemctl reload nginx.service'
|
- ssh -i /root/.ssh/privkey root@M2_HOST 'sudo systemctl reload nginx.service'
|
||||||
- rm -fr privkey
|
- rm -fr /root/.ssh/privkey
|
||||||
secrets: [ m2_deploy_secret, m2_host ]
|
secrets: [ m2_deploy_secret, m2_host ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user