Last active
February 13, 2022 17:50
-
-
Save aasanchez/02664617fc1cde717af07cecfca833da to your computer and use it in GitHub Desktop.
Giltab
This file contains 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
# 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