change pipeline generation + add tf dockerfile

This commit is contained in:
Work 2026-01-26 16:10:54 +03:00
parent 593ce070e6
commit 7e7fe38c25

View File

@ -51,6 +51,12 @@ find live -name "terragrunt.hcl" -not -path "*/.terragrunt-cache/*" | sort | whi
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
stage)
folder_var="YC_STAGE_FOLDER_ID"
@ -102,6 +108,20 @@ validate-${job_prefix}:
- if: '\$CI_COMMIT_BRANCH =~ /^feature\/.*/'
- if: '\$CI_PIPELINE_SOURCE == "pipeline"'
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