Implement deploy jobs for all IaC hosts
This commit is contained in:
parent
e1d874bcc5
commit
89b212f5df
@ -1,4 +1,5 @@
|
|||||||
stages:
|
stages:
|
||||||
|
- test
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
@ -12,6 +13,7 @@ before_script:
|
|||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||||
|
|
||||||
|
|
||||||
server-deploy:
|
server-deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
when: always
|
when: always
|
||||||
@ -21,3 +23,23 @@ server-deploy:
|
|||||||
when: manual
|
when: manual
|
||||||
script:
|
script:
|
||||||
- ssh joey@joey-server "cd /home/joey/homelab && git pull"
|
- ssh joey@joey-server "cd /home/joey/homelab && git pull"
|
||||||
|
|
||||||
|
seedbox-deploy:
|
||||||
|
stage: deploy
|
||||||
|
when: always
|
||||||
|
rules:
|
||||||
|
- changes:
|
||||||
|
- seedbox/
|
||||||
|
when: manual
|
||||||
|
script:
|
||||||
|
- ssh joey@joey-seedbox "cd /home/joey/homelab && git pull"
|
||||||
|
|
||||||
|
jafner-tools-deploy:
|
||||||
|
stage: deploy
|
||||||
|
when: always
|
||||||
|
rules:
|
||||||
|
- changes:
|
||||||
|
- jafner-tools/
|
||||||
|
when: manual
|
||||||
|
script:
|
||||||
|
- ssh root@jafner.tools "cd /root/homelab && git pull"
|
Loading…
Reference in New Issue
Block a user