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