Gitlab的.gitlab-ci.yml配置
阿新 • • 發佈:2018-11-25
假如有 開發 測試 預發 生產1 生產2伺服器
.gitlab-ci.yml
stages: - deploy - test - release - master 構建開發環境: stage: deploy script: - /data-ci/eatjoys-front.sh only: - develop tags: - my-erp 構建測試環境: stage: test script: - /data-ci/eatjoys-front.sh only: - test tags: - my-erp 構建預發環境: stage: release script: - /data-ci/eatjoys-front.sh only: - release tags: - my-erp 構建生產環境: stage: master script: - /data-ci/eatjoys-front.sh only: - master tags: - my-erp
[[email protected] data-ci]# vim eatjoys-front.sh