From c42aa516157b6e15b6eed6a5411b6a7f27facbde Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Sat, 17 Sep 2022 16:00:21 -0400 Subject: [PATCH] okay what about this mx. woodpecker --- .woodpecker.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 3e37066..44472a4 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -9,18 +9,10 @@ pipeline: when: event: [ pull_request, push ] publish: - image: bitnami/git + image: plugins/git-push secrets: [ ssh_key ] - commands: - - mkdir -p ~/.ssh - - echo $ssh_key > ~/.ssh/id_ed25519 - - chmod 400 ~/.ssh/id_ed25519 - - eval "$(ssh-agent -s)" - - ssh-add ~/.ssh/id_ed25519 - - git config user.name "Woodpecker" - - git config user.email "no-reply@mail.ruthenic.com" - - git clone ssh://git@git.ruthenic.com:2200/Demon/demoncord-builds.git /tmp/demoncord-builds - - mv dist/build.js /tmp/demoncord-builds - - cd /tmp/demoncord-builds - - git commit -am "Update build" - - git push + settings: + path: ./dist + remote: ssh://git@git.ruthenic.com:2200/Demon/demoncord-builds.git + commit: true + commit_message: "Update build"