mirror of
https://github.com/idanoo/m2.nz.git
synced 2024-11-22 16:25:13 +00:00
Test deploy
This commit is contained in:
parent
41ff94fe8f
commit
1250daee85
@ -8,15 +8,12 @@ pipeline:
|
|||||||
- wget https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_Linux-64bit.deb
|
- wget https://github.com/gohugoio/hugo/releases/download/v$${HUGO_VERSION}/hugo_extended_$${HUGO_VERSION}_Linux-64bit.deb
|
||||||
- dpkg -i hugo_extended_$${HUGO_VERSION}_Linux-64bit.deb
|
- dpkg -i hugo_extended_$${HUGO_VERSION}_Linux-64bit.deb
|
||||||
- hugo
|
- hugo
|
||||||
- ls
|
- echo "Deploying new version"
|
||||||
|
- ssh-keygen -R $M2_HOST
|
||||||
deploy:
|
|
||||||
image: golang
|
|
||||||
environment:
|
|
||||||
- HUGO_VERSION=0.102.3
|
|
||||||
commands:
|
|
||||||
- echo $M2_DEPLOY_KEY > privkey
|
- echo $M2_DEPLOY_KEY > privkey
|
||||||
- scp -i privkey -r public $M2_DEPLOY_STRING
|
- scp -i privkey -r public root@$M2_HOST:/var/www/m2.nz/
|
||||||
- ssh -i privkey $M2_DEPLOY_STRING 'sudo systemctl reload nginx.service'
|
- ssh -i privkey root@M2_HOST 'sudo systemctl reload nginx.service'
|
||||||
- rm -fr privkey
|
- rm -fr privkey
|
||||||
secrets: [ m2_deploy_secret, m2_deploy_string ]
|
secrets: [ m2_deploy_secret, m2_host ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user