logo
0
0
WeChat Login

git-stash-remote

自动执行git stash并将内容推送到远端和恢复

Image

  • cnbcool/git-stash-remote:latest

Runs on CNB

master: push: - services: - git-clone-yyds stages: - name: ls image: cnbcool/git-stash-remote:latest settings: GIT_PROTOCOL: https #git协议,默认值为https,可选值http/https/git GIT_USERNAME: xxx # git账号,使用http/https协议时,需要指定 GIT_PASSWORD: xxx # git密码,使用http/https协议时,需要指定 # git私钥,指定git协议时,需要指定 GIT_SSH_PRIVATE_KEY: "-----BEGIN OPENSSH PRIVATE KEY-----\nxxx..." BUILD_USER: xxx #用于仓库权限检验 # 默认值为 refs/notes/stash- , 由于目前工蜂只开放了 refs/notes/* 这个不可见ref的推送权限 STASH_PREFIX: refs/stashes/ # 用于生成提交到远端的ref, # 建议使用username-branchName,不能有/符号,建议先encodeURIComponent. # 最终ref为 ${STASH_PREFIX}${STASH_KEY}${SHA} STASH_KEY: xxx BRANCH: master #当前分支名 CMD: restore #默认值push, 可选值 push, restore

About

No description, topics, or website provided.
43.00 KiB
0 forks0 stars2 branches0 TagREADMEOther license
Language
Shell57.5%
JavaScript26.8%
Markdown5.8%
License5.1%
Others4.8%