Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 153f071d authored by Nicolas's avatar Nicolas
Browse files

feat: Add custom stages

parent 884017ad
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
image: busybox:latest image: busybox:latest
stages:
- gke
- psc
- elastic
variables: variables:
TF_ROOT_ELASTIC: ${CI_PROJECT_DIR}/manifests/elastic TF_ROOT_ELASTIC: ${CI_PROJECT_DIR}/manifests/elastic
TF_ROOT_GKE: ${CI_PROJECT_DIR}/manifests/gke TF_ROOT_GKE: ${CI_PROJECT_DIR}/manifests/gke
...@@ -16,7 +21,7 @@ cache: ...@@ -16,7 +21,7 @@ cache:
- ${TF_ROOT_GKE}/.terraform - ${TF_ROOT_GKE}/.terraform
check-gke: check-gke:
stage: test stage: gke
tags: tags:
- docker - docker
- amd64 - amd64
...@@ -47,7 +52,7 @@ check-gke: ...@@ -47,7 +52,7 @@ check-gke:
terraform: ${TF_ROOT_GKE}/plan.json terraform: ${TF_ROOT_GKE}/plan.json
apply-gke: apply-gke:
stage: deploy stage: gke
needs: needs:
- check-gke - check-gke
tags: tags:
...@@ -70,8 +75,9 @@ apply-gke: ...@@ -70,8 +75,9 @@ apply-gke:
gitlab-terraform init gitlab-terraform init
gitlab-terraform apply -auto-approve gitlab-terraform apply -auto-approve
gcloud-psc: gcloud-psc:
stage: deploy stage: psc
needs: needs:
- apply-gke - apply-gke
tags: tags:
...@@ -104,7 +110,7 @@ gcloud-psc: ...@@ -104,7 +110,7 @@ gcloud-psc:
- ${CI_PROJECT_DIR}/pscConnectionId.env - ${CI_PROJECT_DIR}/pscConnectionId.env
check-elastic: check-elastic:
stage: deploy stage: elastic
tags: tags:
- docker - docker
- amd64 - amd64
...@@ -132,7 +138,7 @@ check-elastic: ...@@ -132,7 +138,7 @@ check-elastic:
terraform: ${TF_ROOT_ELASTIC}/plan.json terraform: ${TF_ROOT_ELASTIC}/plan.json
apply-elastic: apply-elastic:
stage: deploy stage: elastic
needs: needs:
- check-elastic - check-elastic
tags: tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment