Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Giltab
stages:
- test
- build
- deploy
test:
stage: test
script: echo "Running tests"
build:
stage: build
script: echo "Building the app"
deploy_develop:
stage: deploy
script:
- echo "Deploy to develop server"
environment:
name: develop
url: https://develop.example.com
only:
- develop
deploy_staging:
stage: deploy
script:
- echo "Deploy to staging server"
environment:
name: staging
url: https://staging.example.com
only:
- master
deploy_prod:
stage: deploy
script:
- echo "Deploy to production server"
environment:
name: production
url: https://example.com
when: manual
only:
- tags
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.