mirror of
https://github.com/idanoo/m2.nz
synced 2025-07-22 04:39:11 +00:00
Test deploy
This commit is contained in:
parent
efcbe7206b
commit
41ff94fe8f
1 changed files with 12 additions and 1 deletions
|
@ -9,3 +9,14 @@ pipeline:
|
|||
- dpkg -i hugo_extended_$${HUGO_VERSION}_Linux-64bit.deb
|
||||
- hugo
|
||||
- ls
|
||||
|
||||
deploy:
|
||||
image: golang
|
||||
environment:
|
||||
- HUGO_VERSION=0.102.3
|
||||
commands:
|
||||
- echo $M2_DEPLOY_KEY > privkey
|
||||
- scp -i privkey -r public $M2_DEPLOY_STRING
|
||||
- ssh -i privkey $M2_DEPLOY_STRING 'sudo systemctl reload nginx.service'
|
||||
- rm -fr privkey
|
||||
secrets: [ m2_deploy_secret, m2_deploy_string ]
|
Loading…
Add table
Add a link
Reference in a new issue