sutty-base-jekyll-theme/.woodpecker.yml

27 lines
1 KiB
YAML
Raw Normal View History

2021-09-18 02:06:08 +00:00
pipeline:
build:
2021-09-28 21:22:46 +00:00
image: registry.nulo.in/sutty/haini.sh@sha256:c980e8b34f108a2728aec58959a28cdde8d0564d229d9692a5be1136ca40a982
2021-09-18 02:06:08 +00:00
commands:
- rm -f assets/js/*
2021-09-18 02:06:08 +00:00
- make yarn hainish="sh -c"
- make webpack hainish="sh -c"
2021-09-18 02:06:08 +00:00
- 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
2021-09-18 02:06:08 +00:00
- 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
2021-09-18 18:50:37 +00:00
- 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} )
2021-09-18 02:06:08 +00:00
secrets:
- git_base64_ssh_key
when:
path:
include:
- _packs/*
- package.json
- yarn.lock
- webpack.*.js
- .woodpecker.yml