From f209b596f682efe5abce3c8a16b9c80e8c69fe2f Mon Sep 17 00:00:00 2001 From: Colgrave Date: Mon, 6 Jan 2025 23:18:38 -0500 Subject: [PATCH] use appleboy/drone-git-push for push action --- Butane/.woodpecker/butane.yaml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/Butane/.woodpecker/butane.yaml b/Butane/.woodpecker/butane.yaml index e51b345..1f2a5ac 100644 --- a/Butane/.woodpecker/butane.yaml +++ b/Butane/.woodpecker/butane.yaml @@ -5,6 +5,8 @@ # # [Butane](https://coreos.github.io/butane/) # [Ignition](https://coreos.github.io/ignition/) +# +# [drone-git-push](https://github.com/appleboy/drone-git-push) when: branch: main @@ -17,16 +19,10 @@ steps: - bash ./script.sh - name: push - image: docker.io/alpine/git:latest + image: docker.io/appleboy/drone-git-push environment: - MAIL: - from_secret: mail - CODEBERG_TOKEN: - from_secret: codeberg_token - commands: - - git remote set-url origin https://$CODEBERG_TOKEN@codeberg.org/ - - git config user.email $MAIL - - git config user.name "Woodpecker CI" - - git add . - - git commit -m "CI translate Butane to Ignition files [SKIP CI]" - - git push origin main + CODEBERG_SSH_KEY: + from_secret: codeberg_ssh_key + settings: + remote: git@codeberg.org:.git + branch: main