From c9d5354783a6a778193e97f01190b8a9457dc096 Mon Sep 17 00:00:00 2001 From: PedroEdiaz Date: Mon, 16 Mar 2026 14:06:40 -0600 Subject: [PATCH] CI: Test hugo --- .gitmodules | 6 ++++++ .woodpecker.yml | 27 +++++++++++++++++++++++++++ theme/pepermod | 1 + themes/PaperMod | 1 + 4 files changed, 35 insertions(+) create mode 100644 .gitmodules create mode 100644 .woodpecker.yml create mode 160000 theme/pepermod create mode 160000 themes/PaperMod diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..401fd50 --- /dev/null +++ b/.gitmodules @@ -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 diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..a3c484a --- /dev/null +++ b/.woodpecker.yml @@ -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 diff --git a/theme/pepermod b/theme/pepermod new file mode 160000 index 0000000..10d3dcc --- /dev/null +++ b/theme/pepermod @@ -0,0 +1 @@ +Subproject commit 10d3dcc0e05cee0aaca58a1305a9d824b2cf9a2a diff --git a/themes/PaperMod b/themes/PaperMod new file mode 160000 index 0000000..10d3dcc --- /dev/null +++ b/themes/PaperMod @@ -0,0 +1 @@ +Subproject commit 10d3dcc0e05cee0aaca58a1305a9d824b2cf9a2a