Created
August 8, 2018 00:22
-
-
Save Dulani/ab428f89d5a37d68843263cffec28c06 to your computer and use it in GitHub Desktop.
Gitlab CI and deployment
This file contains hidden or 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
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