2021-09-18 02:06:08 +00:00
|
|
|
pipeline:
|
|
|
|
build:
|
2021-09-18 18:37:47 +00:00
|
|
|
image: registry.nulo.in/sutty/haini.sh:root
|
2021-09-18 02:06:08 +00:00
|
|
|
commands:
|
|
|
|
- rm assets/js/*
|
|
|
|
- make yarn hainish="sh -c"
|
|
|
|
- make webpack hainish="sh -c"
|
2021-09-18 18:05:06 +00:00
|
|
|
|
2021-09-18 02:06:08 +00:00
|
|
|
- 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 checkout ${DRONE_BRANCH} # Tenemos que hacer esto porque Woodpecker solo `git reset` ea el commit que quiere.
|
|
|
|
- git config user.name Woodpecker
|
|
|
|
- git config user.email ci@nulo.in
|
|
|
|
- git add assets/js/* _data/assets.json
|
|
|
|
- git commit -m "[skip ci] Recompilar JS"
|
|
|
|
- git remote add nulo ssh://_gitea@nulo.in:420/Sutty/sutty-base-jekyll-theme.git
|
|
|
|
- git push -u nulo ${DRONE_BRANCH}
|
|
|
|
secrets:
|
|
|
|
- git_base64_ssh_key
|
2021-09-18 18:05:06 +00:00
|
|
|
when:
|
|
|
|
path:
|
|
|
|
include:
|
|
|
|
- _packs/*
|
|
|
|
- package.json
|
|
|
|
- yarn.lock
|
|
|
|
- webpack.*.js
|