5 Star 22 Fork 3

easysoft / qucheng_web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.gitlab-ci.yml.bak 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
qishiyao 提交于 2023-02-20 16:39 . * Add jenkins ci support.
before_script:
- docker info
- echo "build $CI_COMMIT_REF_NAME"
# after_script:
# - echo "build done"
workflow:
rules:
- if: $CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_REF_NAME == "test" || $CI_COMMIT_REF_NAME == "release" || $CI_COMMIT_REF_NAME =~ /^sprint/
when: always
- if: $CI_COMMIT_TAG
when: always
# - if: $CI_COMMIT_REF_NAME == "feat/ci" # test ci only
# when: always
- when: never
stages:
- build
- deploy
build-tags:
stage: build
script:
- make qucheng citag=${CI_COMMIT_TAG}
only:
- tags
build-custom:
stage: build
script:
- make qucheng
after_script:
- echo "clean build"
except:
- tags
build-api:
stage: build
script:
- make api
after_script:
- echo "clean build"
only:
- test
- master
deploy:
stage: deploy
script:
- kubectl rollout restart deploy/qucheng -n cne-system --kubeconfig=$HOME/.kube/pre.kubeconfig
- kubectl rollout restart deploy/cne-api -n cne-system --kubeconfig=$HOME/.kube/pre.kubeconfig
only:
- test
Go
1
https://gitee.com/wwccss/qucheng_web.git
git@gitee.com:wwccss/qucheng_web.git
wwccss
qucheng_web
qucheng_web
master

搜索帮助