woodpecker: usar appleboy/drone-git-push
This commit is contained in:
parent
c7b8e2eb7c
commit
ca897efe9a
1 changed files with 7 additions and 7 deletions
|
@ -1,20 +1,20 @@
|
|||
pipeline:
|
||||
deploy:
|
||||
build:
|
||||
image: registry.nulo.in/sutty/haini.sh:latest
|
||||
commands:
|
||||
- rm assets/js/*
|
||||
- make yarn hainish="sh -c"
|
||||
- make webpack hainish="sh -c"
|
||||
- mkdir ~/.ssh/
|
||||
- echo $${GIT_SSH_KEY} > ~/.ssh/id_ed25519
|
||||
- echo "[nulo.in]:443 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 checkout ${DRONE_BRANCH}
|
||||
- git config user.name Woodpecker
|
||||
- git config user.email ci@nulo.in
|
||||
- git add assets/js/* _data/assets.json
|
||||
- git commit -m "Recompilar JS"
|
||||
- git remote add nulo ssh://_gitea@nulo.in:420/Sutty/sutty-base-jekyll-theme.git
|
||||
- git push -u nulo ${DRONE_BRANCH}
|
||||
push:
|
||||
image: docker.io/appleboy/drone-git-push
|
||||
branch: ${DRONE_BRANCH}
|
||||
remote: ssh://_gitea@nulo.in:420/Sutty/sutty-base-jekyll-theme.git
|
||||
remote_name: nulo
|
||||
secrets:
|
||||
- ssh_key
|
||||
when:
|
||||
|
|
Loading…
Reference in a new issue