From 524b29eb932e9b9a3523f2f07745330ea90bc519 Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 17 Sep 2021 20:08:09 -0300 Subject: [PATCH] Revert "woodpecker: usar appleboy/drone-git-push" This reverts commit 4f8a01981036e25d4bf5c0e430e8c29c8e92bad8. --- .woodpecker.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 962276c..dc37b56 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,20 +1,20 @@ pipeline: - build: + deploy: image: registry.nulo.in/sutty/haini.sh:latest commands: - rm assets/js/* - make yarn hainish="sh -c" - make webpack hainish="sh -c" - - git checkout ${DRONE_BRANCH} + - 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 config user.name Woodpecker - git config user.email ci@nulo.in - git add assets/js/* _data/assets.json - git commit -m "Recompilar JS" - 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 + - git remote add nulo ssh://_gitea@nulo.in:420/Sutty/sutty-base-jekyll-theme.git + - git push -u nulo ${DRONE_BRANCH} secrets: - ssh_key when: