synchronization
This commit is contained in:
24
CICD/Drone/YML/.drone-git-push.yml
Normal file
24
CICD/Drone/YML/.drone-git-push.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
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"
|
Reference in New Issue
Block a user