update ci

This commit is contained in:
DeveloperDurp 2026-01-31 06:26:41 -06:00
parent baeb625b07
commit 9f5c7d01e6
5 changed files with 28 additions and 28 deletions

View file

@ -7,7 +7,7 @@ build_dmz:
include: dmz/.gitlab/.gitlab-ci.yml include: dmz/.gitlab/.gitlab-ci.yml
rules: rules:
- changes: - changes:
- "dmz/terraform/*.tf" - "dmz/*.tf"
build_infra: build_infra:
stage: triggers stage: triggers
@ -15,7 +15,7 @@ build_infra:
include: infra/.gitlab/.gitlab-ci.yml include: infra/.gitlab/.gitlab-ci.yml
rules: rules:
- changes: - changes:
- "infra/terraform/*.tf" - "infra/*.tf"
build_dev: build_dev:
stage: triggers stage: triggers
@ -23,7 +23,7 @@ build_dev:
include: dev/.gitlab/.gitlab-ci.yml include: dev/.gitlab/.gitlab-ci.yml
rules: rules:
- changes: - changes:
- "dev/terraform/*.tf" - "dev/*.tf"
build_prd: build_prd:
stage: triggers stage: triggers
@ -31,4 +31,4 @@ build_prd:
include: prd/.gitlab/.gitlab-ci.yml include: prd/.gitlab/.gitlab-ci.yml
rules: rules:
- changes: - changes:
- "prd/terraform/*.tf" - "prd/*.tf"

View file

@ -4,7 +4,7 @@ stages:
- destroy - destroy
variables: variables:
WORKDIR: $CI_PROJECT_DIR/dev/terraform WORKDIR: $CI_PROJECT_DIR/dev
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/dev GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/dev
image: image:
@ -33,7 +33,7 @@ format:
- tofu fmt -diff -check -write=false - tofu fmt -diff -check -write=false
rules: rules:
- changes: - changes:
- "dev/terraform/*.tf" - "dev/*.tf"
validate: validate:
stage: .pre stage: .pre
@ -43,7 +43,7 @@ validate:
- tofu validate - tofu validate
rules: rules:
- changes: - changes:
- "dev/terraform/*.tf" - "dev/*.tf"
plan-dev-infrastructure: plan-dev-infrastructure:
stage: plan stage: plan
@ -64,7 +64,7 @@ plan-dev-infrastructure:
needs: ["validate","format"] needs: ["validate","format"]
rules: rules:
- changes: - changes:
- "dev/terraform/*.tf" - "dev/*.tf"
apply-dev-infrastructure: apply-dev-infrastructure:
stage: apply stage: apply
@ -76,7 +76,7 @@ apply-dev-infrastructure:
- tofu apply -auto-approve $ARGUMENTS - tofu apply -auto-approve $ARGUMENTS
rules: rules:
- changes: - changes:
- "dev/terraform/*.tf" - "dev/*.tf"
when: manual when: manual
needs: ["plan-dev-infrastructure"] needs: ["plan-dev-infrastructure"]
@ -90,6 +90,6 @@ destroy-dev-infrastructure:
- tofu destroy -auto-approve $ARGUMENTS - tofu destroy -auto-approve $ARGUMENTS
rules: rules:
- changes: - changes:
- "dev/terraform/*.tf" - "dev/*.tf"
when: manual when: manual
needs: ["plan-dev-infrastructure"] needs: ["plan-dev-infrastructure"]

View file

@ -4,7 +4,7 @@ stages:
- destroy - destroy
variables: variables:
WORKDIR: $CI_PROJECT_DIR/dmz/terraform WORKDIR: $CI_PROJECT_DIR/dmz
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/dmz GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/dmz
image: image:
@ -33,7 +33,7 @@ format:
- tofu fmt -diff -check -write=false - tofu fmt -diff -check -write=false
rules: rules:
- changes: - changes:
- "dmz/terraform/*.tf" - "dmz/*.tf"
validate: validate:
stage: .pre stage: .pre
@ -43,7 +43,7 @@ validate:
- tofu validate - tofu validate
rules: rules:
- changes: - changes:
- "dmz/terraform/*.tf" - "dmz/*.tf"
plan-dmz-infrastructure: plan-dmz-infrastructure:
stage: plan stage: plan
@ -64,7 +64,7 @@ plan-dmz-infrastructure:
needs: ["validate","format"] needs: ["validate","format"]
rules: rules:
- changes: - changes:
- "dmz/terraform/*.tf" - "dmz/*.tf"
apply-dmz-infrastructure: apply-dmz-infrastructure:
stage: apply stage: apply
@ -76,7 +76,7 @@ apply-dmz-infrastructure:
- tofu apply -auto-approve $ARGUMENTS - tofu apply -auto-approve $ARGUMENTS
rules: rules:
- changes: - changes:
- "dmz/terraform/*.tf" - "dmz/*.tf"
when: manual when: manual
needs: ["plan-dmz-infrastructure"] needs: ["plan-dmz-infrastructure"]
@ -90,6 +90,6 @@ destroy-dmz-infrastructure:
- tofu destroy -auto-approve $ARGUMENTS - tofu destroy -auto-approve $ARGUMENTS
rules: rules:
- changes: - changes:
- "dmz/terraform/*.tf" - "dmz/*.tf"
when: manual when: manual
needs: ["plan-dmz-infrastructure"] needs: ["plan-dmz-infrastructure"]

View file

@ -4,7 +4,7 @@ stages:
- destroy - destroy
variables: variables:
WORKDIR: $CI_PROJECT_DIR/infra/terraform WORKDIR: $CI_PROJECT_DIR/infra
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/infra GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/infra
image: image:
@ -33,7 +33,7 @@ format:
- tofu fmt -diff -check -write=false - tofu fmt -diff -check -write=false
rules: rules:
- changes: - changes:
- "infra/terraform/*.tf" - "infra/*.tf"
validate: validate:
stage: .pre stage: .pre
@ -43,7 +43,7 @@ validate:
- tofu validate - tofu validate
rules: rules:
- changes: - changes:
- "infra/terraform/*.tf" - "infra/*.tf"
plan-infrastructure: plan-infrastructure:
stage: plan stage: plan
@ -64,7 +64,7 @@ plan-infrastructure:
needs: ["validate","format"] needs: ["validate","format"]
rules: rules:
- changes: - changes:
- "infra/terraform/*.tf" - "infra/*.tf"
apply-infrastructure: apply-infrastructure:
stage: apply stage: apply
@ -76,7 +76,7 @@ apply-infrastructure:
- tofu apply -auto-approve $ARGUMENTS - tofu apply -auto-approve $ARGUMENTS
rules: rules:
- changes: - changes:
- "infra/terraform/*.tf" - "infra/*.tf"
when: manual when: manual
needs: ["plan-infrastructure"] needs: ["plan-infrastructure"]
@ -90,6 +90,6 @@ destroy-infrastructure:
- tofu destroy -auto-approve $ARGUMENTS - tofu destroy -auto-approve $ARGUMENTS
rules: rules:
- changes: - changes:
- "infra/terraform/*.tf" - "infra/*.tf"
when: manual when: manual
needs: ["plan-infrastructure"] needs: ["plan-infrastructure"]

View file

@ -4,7 +4,7 @@ stages:
- destroy - destroy
variables: variables:
WORKDIR: $CI_PROJECT_DIR/prd/terraform WORKDIR: $CI_PROJECT_DIR/prd
GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/prd GITLAB_TF_ADDRESS: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/terraform/state/prd
image: image:
@ -33,7 +33,7 @@ format:
- tofu fmt -diff -check -write=false - tofu fmt -diff -check -write=false
rules: rules:
- changes: - changes:
- "prd/terraform/*.tf" - "prd/*.tf"
validate: validate:
stage: .pre stage: .pre
@ -43,7 +43,7 @@ validate:
- tofu validate - tofu validate
rules: rules:
- changes: - changes:
- "prd/terraform/*.tf" - "prd/*.tf"
plan-prd-infrastructure: plan-prd-infrastructure:
stage: plan stage: plan
@ -64,7 +64,7 @@ plan-prd-infrastructure:
needs: ["validate","format"] needs: ["validate","format"]
rules: rules:
- changes: - changes:
- "prd/terraform/*.tf" - "prd/*.tf"
apply-prd-infrastructure: apply-prd-infrastructure:
stage: apply stage: apply
@ -76,7 +76,7 @@ apply-prd-infrastructure:
- tofu apply -auto-approve $ARGUMENTS - tofu apply -auto-approve $ARGUMENTS
rules: rules:
- changes: - changes:
- "prd/terraform/*.tf" - "prd/*.tf"
when: manual when: manual
needs: ["plan-prd-infrastructure"] needs: ["plan-prd-infrastructure"]
@ -90,6 +90,6 @@ destroy-prd-infrastructure:
- tofu destroy -auto-approve $ARGUMENTS - tofu destroy -auto-approve $ARGUMENTS
rules: rules:
- changes: - changes:
- "prd/terraform/*.tf" - "prd/*.tf"
when: manual when: manual
needs: ["plan-prd-infrastructure"] needs: ["plan-prd-infrastructure"]