Skip to content

Instantly share code, notes, and snippets.

@Dulani
Created August 8, 2018 00:22
Show Gist options
  • Save Dulani/ab428f89d5a37d68843263cffec28c06 to your computer and use it in GitHub Desktop.
Save Dulani/ab428f89d5a37d68843263cffec28c06 to your computer and use it in GitHub Desktop.
Gitlab CI and deployment
image: php:5.6
stages:
- test
- build
- deploy
test:
stage: test
script: echo "Running tests"
build:
stage: build
script: echo "Building the app"
deploy_staging:
stage: deploy
script:
- echo "Deploy to staging server"
- git add -A
- git stash
- git clone https://gitlab.com/Bharadhwaj/example-portal.git
environment:
name: staging
url: http://10.0.0.***/example-portal/
only:
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment