Update .bianbu-ci.yml to fix releases issue

This commit is contained in:
James Deng 2024-10-29 15:17:01 +08:00
parent 503096f0f9
commit 793b7c1405

View file

@ -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