假若有 開發 測試 預發 生產1 生產2服務器git
.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
[root@sannian data-ci]# vim eatjoys-front.sh