Created
October 26, 2015 12:11
-
-
Save dancourse/2d4ced4380d4c6a3ddb9 to your computer and use it in GitHub Desktop.
Attempt to deploy to production from Gitlab CI on releases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_script: | |
- curl -s https://getcomposer.org/installer | php | |
# etc... | |
stages: | |
- test | |
- deploy | |
job_aliveonly: | |
stage: test | |
script: | |
- ./vendor/bin/phpunit ./tests/others/AppTest | |
job_deploy_preprod: | |
stage: deploy | |
script: | |
- envoy run deploy --on=preprod --branch=develop | |
only: | |
- /release.*$/ | |
# should match release/v1.2.3 | |
# should match release/v2.3.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment