Skip to content

Instantly share code, notes, and snippets.

@caseydriscoll
Created June 30, 2017 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caseydriscoll/46c03004282940785aa6f683d8cf4081 to your computer and use it in GitHub Desktop.
Save caseydriscoll/46c03004282940785aa6f683d8cf4081 to your computer and use it in GitHub Desktop.
Sample GitLab CI yaml file
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