use appleboy/drone-git-push for push action

This commit is contained in:
Colgrave 2025-01-06 23:18:38 -05:00
parent 665ae70ea4
commit f209b596f6

View File

@ -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/<YOUR_GIT_REPO>
- 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:<YOUR_GIT_REPO>.git
branch: main