mirror of
https://codeberg.org/Codeberg-CI/examples.git
synced 2025-09-12 05:15:00 -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/)
|
||||
# [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
|
||||
|
Loading…
x
Reference in New Issue
Block a user