Kubernetes/CICD/Drone/YML/.drone-git-push.yml

24 lines
423 B
YAML
Raw Permalink Normal View History

2024-08-07 10:54:39 +00:00
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"