From 88bf5110f98e9167116aa8dec71b8b87246e8b5e Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Fri, 5 Jan 2024 22:43:25 +0100 Subject: [PATCH] Move to my own deployment plugin --- .woodpecker.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 9e7e808..b379026 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,17 +6,11 @@ steps: - npm install -D tailwindcss @tailwindcss/typography - npx tailwindcss -i input.css -o static/css/index.css --minify - zola build - - ls -l deploy: - image: alpine:3.19 + image: git.polynom.me/papatutuwawa/woodpecker-ssg-deploy@sha256:c7e2e8ad5d096ca6a628ffbbfa1026dce21784305f6069985d830c4167abcbda secrets: [ git_push_token ] - commands: - - apk add --no-cache git - - git config --global user.email "ci@polynom.me" - - git config --global user.name "polynom.me CI system" - - git config --global --add safe.directory $CI_WORKSPACE/$CI_REPO_OWNER/$CI_REPO_NAME/deploy - - git init -b pages public - - cd public - - git add --all - - git commit -m "Deploy new version $CI_COMMIT_SHA" - - git push -u https://$GIT_PUSH_TOKEN@git.polynom.me/$CI_REPO_OWNER/$CI_REPO_NAME.git -f pages \ No newline at end of file + settings: + email: "ci@polynom.me" + name: "polynom.me CI system" + token_env: "GIT_PUSH_TOKEN" + output: "public" \ No newline at end of file