From c8c1f4d0cfa06fc9cb5d85cfe3fff2ff44cbd673 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Thu, 9 May 2024 19:23:59 -0500 Subject: [PATCH] update --- .gitlab/.gitlab-ci.yml | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index 220df89..659612d 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -1,5 +1,7 @@ stages: - deploy + - staging + - production include: - project: 'developerdurp/yml' @@ -33,16 +35,35 @@ version: # - exists: # - "go.mod" -generate-config: +generate-config-staging: extends: .generate-config - stage: deploy - #needs: - # - job: build + stage: staging + variables: + ENVIRONMENT: "staging" -child-pipeline: - stage: deploy +child-pipeline-staging: + stage: staging needs: - - job: generate-config + - job: generate-config-staging + trigger: + include: + - artifact: generated-config.yml + job: generate-config + +generate-config-production: + extends: .generate-config + stage: production + when: manual + needs: + - job: generate-config-staging + - job: child-pipeline-staging + variables: + ENVIRONMENT: "production" + +child-pipeline-production: + stage: production + needs: + - job: generate-config-production trigger: include: - artifact: generated-config.yml