Skip to content

Instantly share code, notes, and snippets.

@dancourse
Created October 26, 2015 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dancourse/2d4ced4380d4c6a3ddb9 to your computer and use it in GitHub Desktop.
Save dancourse/2d4ced4380d4c6a3ddb9 to your computer and use it in GitHub Desktop.
Attempt to deploy to production from Gitlab CI on releases
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