CI: Test hugo
This commit is contained in:
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
[submodule "theme/pepermod"]
|
||||
path = theme/pepermod
|
||||
url = https://github.com/adityatelange/hugo-PaperMod
|
||||
[submodule "themes/pepermod"]
|
||||
path = themes/PaperMod
|
||||
url = https://github.com/adityatelange/hugo-PaperMod
|
||||
27
.woodpecker.yml
Normal file
27
.woodpecker.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
steps:
|
||||
build:
|
||||
image: hugomods/hugo:go-git-0.150.1
|
||||
commands:
|
||||
- hugo
|
||||
publish:
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk add --no-cache rsync openssh-client
|
||||
|
||||
- echo -e "$CI_REPO_NAME {\n\timport _https_generic\n\t file_server {\n\t\t root /usr/https/$CI_REPO_NAME/public\n\t }\n }" > ./$CI_REPO_NAME.conf
|
||||
|
||||
- mkdir -p ~/.ssh
|
||||
- echo "$HTTPS_SSH_KEY" > ~/.ssh/id_ed25519
|
||||
- chmod 600 ~/.ssh/id_ed25519
|
||||
- ssh-keyscan -H nviam.dev >> ~/.ssh/known_hosts 2>/dev/null
|
||||
|
||||
- rsync -av --delete ./public https@nviam.dev:$CI_REPO_NAME
|
||||
- rsync -av --delete ./$CI_REPO_NAME.conf https@nviam.dev:caddy
|
||||
|
||||
environment:
|
||||
HTTPS_SSH_KEY:
|
||||
from_secret: https_ssh_key
|
||||
depends_on: [build]
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
1
theme/pepermod
Submodule
1
theme/pepermod
Submodule
Submodule theme/pepermod added at 10d3dcc0e0
1
themes/PaperMod
Submodule
1
themes/PaperMod
Submodule
Submodule themes/PaperMod added at 10d3dcc0e0
Reference in New Issue
Block a user