mirror of
https://gitee.com/bianbu-linux/openwrt-docs
synced 2025-04-18 19:35:15 -04:00
Update .bianbu-ci.yml to fix releases issue
This commit is contained in:
parent
503096f0f9
commit
793b7c1405
1 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,7 @@ variables:
|
|||
WEBSITE_NAME: "bianbu-linux-website"
|
||||
|
||||
default:
|
||||
image: "harbor.bianbu.xyz/gitlab/node:v1"
|
||||
image: "harbor.bianbu.xyz/gitlab/node:v2"
|
||||
before_script:
|
||||
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||
- eval $(ssh-agent -s)
|
||||
|
@ -76,8 +76,9 @@ release-job:
|
|||
stage: release
|
||||
variables:
|
||||
GIT_STRATEGY: clone
|
||||
GIT_DEPTH: 0
|
||||
script:
|
||||
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install ncat -y )'
|
||||
- 'command -v nc >/dev/null || ( apt-get update -y && apt-get install ncat -y )'
|
||||
- export GIT_SSH_COMMAND='ssh -o ProxyCommand="nc -X connect -x proxy1.dc.com:1080 %h %p" -o StrictHostKeyChecking=no'
|
||||
- git config --global user.name "Bianbu-CI"
|
||||
- git config --global user.email "bianbu-ci@spacemit.com"
|
||||
|
@ -87,4 +88,4 @@ release-job:
|
|||
- git merge --no-ff --no-edit origin/main
|
||||
- git push gitee HEAD:main
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TAG'
|
||||
- if: $CI_COMMIT_TAG
|
||||
|
|
Loading…
Add table
Reference in a new issue