Skip to content

Instantly share code, notes, and snippets.

@akshayamaldhure
Last active February 21, 2023 05:13
Show Gist options
  • Save akshayamaldhure/eb11bdef9a70766476516faa2a695f95 to your computer and use it in GitHub Desktop.
Save akshayamaldhure/eb11bdef9a70766476516faa2a695f95 to your computer and use it in GitHub Desktop.
CI config for the application - Demo
# qa/gitlab-ci-app-project.git
stages:
- pre_deploy
- test
- build
- deploy_integration
- functional_test
- deploy_production
- post_deploy
include:
- project: qa/gitlab-ci-templates-project
file: functional-test-suite-1.yml
- project: qa/gitlab-ci-templates-project
file: functional-test-suite-2.yml
notify-deployment-start:
stage: pre_deploy
script:
- echo "Deployment started"
benchmark:
stage: test
script:
- echo "Running benchmark scripts"
buf-lint:
stage: test
script:
- echo "Running lint checks"
unit-test:
stage: test
script:
- echo "Running unit tests"
docker-build:
stage: build
script:
- echo "Build the application and uploading the build to artifactory"
deploy-integration:
stage: deploy_integration
script:
- echo "Deploying the build to integration"
deploy-production:
stage: deploy_production
script:
- echo "Deploying the build to production"
notify-deployment-success:
stage: post_deploy
script:
- echo "Deployment successful"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment