Update .woodpecker.yml
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
45698aef8a
commit
a97be6535c
1 changed files with 11 additions and 5 deletions
|
@ -1,9 +1,15 @@
|
|||
when:
|
||||
- branch: main
|
||||
event: push
|
||||
- event: tag
|
||||
|
||||
steps:
|
||||
- name: techtransthai-simple-deploy
|
||||
- name: deploy
|
||||
image: alpine
|
||||
commands:
|
||||
- apk add git go
|
||||
- apk add --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community --no-cache hugo
|
||||
- hugo --destination /mnt/caddy-sites/thailinux.techtransthai.org/public
|
||||
- apk add git go hugo
|
||||
- hugo
|
||||
- rm -rf /mnt/caddy-sites/thailinux.techtransthai.org/*
|
||||
- cp -r public/* /mnt/caddy-sites/thailinux.techtransthai.org
|
||||
volumes:
|
||||
- /media/sasha/Data1/Apps/caddy/sites:/mnt/caddy-sites
|
||||
- /media/core/Data1/Apps/caddy/sites:/mnt/caddy-sites
|
Loading…
Add table
Reference in a new issue