mirror of
https://codeberg.org/Codeberg-CI/examples.git
synced 2025-09-12 13:26:07 -04:00
use appleboy/drone-git-push for push action
This commit is contained in:
parent
665ae70ea4
commit
f209b596f6
@ -5,6 +5,8 @@
|
|||||||
#
|
#
|
||||||
# [Butane](https://coreos.github.io/butane/)
|
# [Butane](https://coreos.github.io/butane/)
|
||||||
# [Ignition](https://coreos.github.io/ignition/)
|
# [Ignition](https://coreos.github.io/ignition/)
|
||||||
|
#
|
||||||
|
# [drone-git-push](https://github.com/appleboy/drone-git-push)
|
||||||
|
|
||||||
when:
|
when:
|
||||||
branch: main
|
branch: main
|
||||||
@ -17,16 +19,10 @@ steps:
|
|||||||
- bash ./script.sh
|
- bash ./script.sh
|
||||||
|
|
||||||
- name: push
|
- name: push
|
||||||
image: docker.io/alpine/git:latest
|
image: docker.io/appleboy/drone-git-push
|
||||||
environment:
|
environment:
|
||||||
MAIL:
|
CODEBERG_SSH_KEY:
|
||||||
from_secret: mail
|
from_secret: codeberg_ssh_key
|
||||||
CODEBERG_TOKEN:
|
settings:
|
||||||
from_secret: codeberg_token
|
remote: git@codeberg.org:<YOUR_GIT_REPO>.git
|
||||||
commands:
|
branch: main
|
||||||
- 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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user