This commit is contained in:
parent
39b8f480e4
commit
83590f56b6
1 changed files with 4 additions and 8 deletions
|
@ -1,25 +1,22 @@
|
|||
pipeline:
|
||||
build-stable:
|
||||
image: archlinux
|
||||
image: code.cozy.town/vrifox/hugoci:latest
|
||||
commands:
|
||||
- pacman -Syu --noconfirm hugo git
|
||||
- hugo --destination /woodpecker/build/ --minify --cleanDestinationDir
|
||||
when:
|
||||
branch: [ main ]
|
||||
|
||||
build-dev:
|
||||
image: archlinux
|
||||
image: code.cozy.town/vrifox/hugoci:latest
|
||||
commands:
|
||||
- pacman -Syu --noconfirm hugo git
|
||||
- hugo --destination /woodpecker/build/ --baseURL "https://dev.vrifox.cc/${CI_COMMIT_BRANCH}/${CI_COMMIT_SHA}/" --cleanDestinationDir
|
||||
when:
|
||||
branch:
|
||||
exclude: [ main ]
|
||||
|
||||
upload-stable:
|
||||
image: archlinux
|
||||
image: code.cozy.town/vrifox/hugoci:latest
|
||||
commands:
|
||||
- pacman -Syu --noconfirm openssh rsync
|
||||
- mkdir -p /root/.ssh
|
||||
- echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
||||
- chmod 700 /root/.ssh/id_ed25519
|
||||
|
@ -30,9 +27,8 @@ pipeline:
|
|||
branch: [ main ]
|
||||
|
||||
upload-dev:
|
||||
image: archlinux
|
||||
image: code.cozy.town/vrifox/hugoci:latest
|
||||
commands:
|
||||
- pacman -Syu --noconfirm openssh rsync
|
||||
- mkdir -p /root/.ssh
|
||||
- echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
||||
- chmod 700 /root/.ssh/id_ed25519
|
||||
|
|
Loading…
Reference in a new issue