24 lines
423 B
YAML
24 lines
423 B
YAML
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: Git Push
|
||
|
|
||
|
# 手动触发或接口触发
|
||
|
trigger:
|
||
|
event:
|
||
|
- custom
|
||
|
|
||
|
steps:
|
||
|
- name: Git Push
|
||
|
image: appleboy/drone-git-push
|
||
|
# 仅当本地不存在该镜像时才拉取
|
||
|
pull: if-not-exists
|
||
|
settings:
|
||
|
branch: main
|
||
|
remote:
|
||
|
from_secret: REMOTE
|
||
|
ssh_key:
|
||
|
from_secret: SSH_KEY
|
||
|
path:
|
||
|
force: false
|
||
|
commit: true
|
||
|
commit_message: "Update From Drone"
|