Created
June 30, 2017 22:48
-
-
Save caseydriscoll/46c03004282940785aa6f683d8cf4081 to your computer and use it in GitHub Desktop.
Sample GitLab CI yaml file
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: | |
- git clone https://git.caseydris.co/casey/drupal-runner.git steps | |
- chmod -R 775 steps | |
- export CI_RELEASE=$(date +%Y%m%d%H%M%S) | |
build_stage: | |
stage: build | |
script: | |
- steps/deploy $STAGE_PATH $CI_RELEASE | |
- steps/harden $STAGE_PATH $CI_RELEASE | |
only: | |
- stage | |
build_prod: | |
stage: build | |
script: | |
- steps/build $CI_RELEASE casey | |
- steps/deploy $PROD_PATH $CI_RELEASE | |
- steps/harden $PROD_PATH $CI_RELEASE | |
- steps/backup $PROD_PATH $CI_RELEASE | |
only: | |
- prod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment