update ci configuration
This commit is contained in:
parent
b58a2bc845
commit
e0ed411029
1 changed files with 9 additions and 5 deletions
|
@ -1,9 +1,13 @@
|
||||||
|
when:
|
||||||
|
- branch: main
|
||||||
|
event: push
|
||||||
|
- event: tag
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: techtransthai-simple-deploy
|
- name: deploy
|
||||||
image: alpine/git
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- git -C /mnt/caddy-sites/latenightdef.techtransthai.org pull
|
- rm -rf /mnt/caddy-sites/latenightdef.techtransthai.org/*
|
||||||
|
- cp -r * /mnt/caddy-sites/latenightdef.techtransthai.org
|
||||||
volumes:
|
volumes:
|
||||||
- /media/core/Data1/Apps/caddy/sites:/mnt/caddy-sites
|
- /media/core/Data1/Apps/caddy/sites:/mnt/caddy-sites
|
||||||
when:
|
|
||||||
- branch: main
|
|
Loading…
Add table
Add a link
Reference in a new issue