Skip to content

Instantly share code, notes, and snippets.

@aasanchez
Last active February 13, 2022 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aasanchez/02664617fc1cde717af07cecfca833da to your computer and use it in GitHub Desktop.
Save aasanchez/02664617fc1cde717af07cecfca833da to your computer and use it in GitHub Desktop.
Giltab
# You can override the included template(s) by including variable overrides
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
stages:
- build
- test
- deploy
- review
- dast
- staging
- canary
- production
- incremental rollout 10%
- incremental rollout 25%
- incremental rollout 50%
- incremental rollout 100%
- performance
- cleanup
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