With the yml below, the master branch gets deployed when development is committed. I need master to deploy only when master is committed, development to deploy only when development is committed. I’m sure that only: is involved, but it’s not clear how it’s meant to be used in this situation.
stages:
- deploy
deploy-master:
stage: deploy
script:
- powershell Copy-Item $CI_PROJECT_DIR -Destination 'D:\Admin\Production' -Force -Recurse -ErrorAction "SilentlyContinue"
- powershell Copy-Item D:\Admin\Production\mars_integration\resources\production -Destination 'D:\Admin\Production\mars_integration' -Force -Recurse -ErrorAction "SilentlyContinue"
- Set-Location -Path D:\Admin\Production\mars_integration
- d:\commandbox\box install --production
deploy-development:
stage: deploy
script:
- powershell Copy-Item $CI_PROJECT_DIR -Destination 'D:\Admin\Staging' -Force -Recurse -ErrorAction "SilentlyContinue"
- Set-Location -Path D:\Admin\Staging\mars_integration
- d:\commandbox\box install --development