Skip to content

Instantly share code, notes, and snippets.

@akshayamaldhure
Last active February 21, 2023 07:47
Show Gist options
  • Save akshayamaldhure/e3615969f8839af0fa7f951310236d19 to your computer and use it in GitHub Desktop.
Save akshayamaldhure/e3615969f8839af0fa7f951310236d19 to your computer and use it in GitHub Desktop.
CI templates - Demo
.functional_test_template:
variables:
ENV: "integration"
LOCALE: "ID"
UPSTREAM_JOB_NAME: $CI_JOB_NAME
UPSTREAM_BRANCH_NAME: $CI_COMMIT_REF_NAME
UPSTREAM_COMMIT_SHA: $CI_COMMIT_SHA
UPSTREAM_PROJECT_NAME: $CI_PROJECT_NAME
UPSTREAM_PIPELINE_URL: $CI_PIPELINE_URL
UPSTREAM_PROJECT_ID: $CI_PROJECT_ID
allow_failure: false
needs:
- deploy-integration
include:
- local: .functional-test-template.yml
functional-test-suite-1:
stage: functional_test
variables:
LOCALE: "VN"
trigger:
project: qa/gitlab-ci-test-project
branch: main
strategy: depend
include:
- local: /.functional-test-template.yml
functional-test-suite-2:
stage: functional_test
variables:
LOCALE: "US"
trigger:
project: qa/gitlab-ci-test-project
branch: main
strategy: depend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment