From a10fb7de1069588da2737cf34abce8fed24cdf7a Mon Sep 17 00:00:00 2001 From: Nulo Date: Mon, 20 Sep 2021 14:21:09 -0300 Subject: [PATCH] Woodpecker --- .woodpecker.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..fd583ea --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,27 @@ +pipeline: + build: + image: registry.nulo.in/sutty/haini.sh:root + commands: + - rm -f assets/js/* + - make yarn hainish="sh -c" + - make webpack hainish="sh -c" + + - mkdir ~/.ssh/ + - eval $(ssh-agent -s) + - echo "$${GIT_BASE64_SSH_KEY}" | base64 -d | ssh-add - + - echo [nulo.in]:420 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgHIbf5/jkeyLMndnWlEO12DPj41YPqkmz+aIreVOsP >> ~/.ssh/known_hosts + + - git config user.name Woodpecker + - git config user.email ci@nulo.in + - git remote add nulo ssh://_gitea@nulo.in:420/Sutty/sutty-base-jekyll-theme.git + - git diff-index --quiet HEAD --ignore-submodules || ( git add assets/js/pack* && git commit assets/js/ _data/assets.json -m "[skip ci] Recompilar JS" && git push -u nulo HEAD:${DRONE_BRANCH} ) + secrets: + - git_base64_ssh_key + when: + path: + include: + - _packs/* + - package.json + - yarn.lock + - webpack.*.js + - .woodpecker.yml