mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-08 21:21:34 +03:00
change pipeline generation + add tf dockerfile
This commit is contained in:
parent
593ce070e6
commit
7e7fe38c25
@ -51,6 +51,12 @@ find live -name "terragrunt.hcl" -not -path "*/.terragrunt-cache/*" | sort | whi
|
|||||||
|
|
||||||
job_prefix="${env}-${component}"
|
job_prefix="${env}-${component}"
|
||||||
|
|
||||||
|
|
||||||
|
needs_deps=""
|
||||||
|
if [ "$component" = "secrets" ]; then
|
||||||
|
needs_deps="validate-${env}-namespace validate-${env}-s3 validate-${env}-database"
|
||||||
|
fi
|
||||||
|
|
||||||
case "$env" in
|
case "$env" in
|
||||||
stage)
|
stage)
|
||||||
folder_var="YC_STAGE_FOLDER_ID"
|
folder_var="YC_STAGE_FOLDER_ID"
|
||||||
@ -102,6 +108,20 @@ validate-${job_prefix}:
|
|||||||
- if: '\$CI_COMMIT_BRANCH =~ /^feature\/.*/'
|
- if: '\$CI_COMMIT_BRANCH =~ /^feature\/.*/'
|
||||||
- if: '\$CI_PIPELINE_SOURCE == "pipeline"'
|
- if: '\$CI_PIPELINE_SOURCE == "pipeline"'
|
||||||
interruptible: true
|
interruptible: true
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if [ -n "$needs_deps" ]; then
|
||||||
|
cat >> "$OUTPUT_FILE" << EOF
|
||||||
|
needs:
|
||||||
|
EOF
|
||||||
|
for dep in $needs_deps; do
|
||||||
|
echo " - ${dep}" >> "$OUTPUT_FILE"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat >> "$OUTPUT_FILE" << EOF
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user