Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
.gitlab-ci.yml 587 Bytes
Copy Edit Raw Blame History
lvzk authored 2023-03-03 19:06 . init
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
build1:
stage: build
only:
- /^develop.*$/
- /^release.*$/
script:
- echo "git clone success!"
- if [[ "${CI_COMMIT_REF_NAME}" == "release"* ]]; then sh autotag.sh ${CI_PROJECT_ID} ${CI_COMMIT_SHA}; fi;
deploy1:
stage: deploy
only:
- /^develop.*$/
- /^release.*$/
script:
- export ENV_NAME="develop";
- if [[ "${CI_COMMIT_REF_NAME}" == "release"* ]]; then ENV_NAME="release"; fi;
- mvn deploy -e --settings /home/gitlab-runner/.m2/settings.xml -P${ENV_NAME}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化