change pipeline generation + add tf dockerfile

This commit is contained in:
Work 2026-01-26 16:26:01 +03:00
parent 19204b4ae1
commit 87b7f1080d
6 changed files with 110 additions and 12 deletions

6
.gitignore vendored
View File

@ -18,6 +18,12 @@ terraform.rc
.terragrunt-cache/
terragrunt.hcl.backup
!live/stage/s3/.terraform.lock.hcl
!live/stage/database/.terraform.lock.hcl
!live/stage/namespace/.terraform.lock.hcl
!live/stage/secrets/.terraform.lock.hcl
# Generated files
.gitlab-ci.generated.yml

26
live/stage/database/.terraform.lock.hcl generated Normal file
View File

@ -0,0 +1,26 @@
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/kubernetes" {
version = "2.38.0"
constraints = "~> 2.23"
hashes = [
"h1:soK8Lt0SZ6dB+HsypFRDzuX/npqlMU6M0fvyaR1yW0k=",
]
}
provider "registry.terraform.io/hashicorp/random" {
version = "3.8.0"
constraints = "~> 3.1"
hashes = [
"h1:BYpqK2+ZHqNF9sauVugKJSeFWMCx11I/z/1lMplwUC0=",
]
}
provider "registry.terraform.io/yandex-cloud/yandex" {
version = "0.181.0"
constraints = "~> 0.100"
hashes = [
"h1:n5o9pvUkrGmunWVvZU4xGEUtfRXAG3KCvR9YrzsXc08=",
]
}

26
live/stage/namespace/.terraform.lock.hcl generated Normal file
View File

@ -0,0 +1,26 @@
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/kubernetes" {
version = "2.38.0"
constraints = "~> 2.23"
hashes = [
"h1:soK8Lt0SZ6dB+HsypFRDzuX/npqlMU6M0fvyaR1yW0k=",
]
}
provider "registry.terraform.io/hashicorp/random" {
version = "3.8.0"
constraints = "~> 3.1"
hashes = [
"h1:BYpqK2+ZHqNF9sauVugKJSeFWMCx11I/z/1lMplwUC0=",
]
}
provider "registry.terraform.io/yandex-cloud/yandex" {
version = "0.181.0"
constraints = "~> 0.100"
hashes = [
"h1:n5o9pvUkrGmunWVvZU4xGEUtfRXAG3KCvR9YrzsXc08=",
]
}

26
live/stage/s3/.terraform.lock.hcl generated Normal file
View File

@ -0,0 +1,26 @@
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/kubernetes" {
version = "2.38.0"
constraints = "~> 2.23"
hashes = [
"h1:soK8Lt0SZ6dB+HsypFRDzuX/npqlMU6M0fvyaR1yW0k=",
]
}
provider "registry.terraform.io/hashicorp/random" {
version = "3.8.0"
constraints = "~> 3.1"
hashes = [
"h1:BYpqK2+ZHqNF9sauVugKJSeFWMCx11I/z/1lMplwUC0=",
]
}
provider "registry.terraform.io/yandex-cloud/yandex" {
version = "0.181.0"
constraints = "~> 0.100"
hashes = [
"h1:n5o9pvUkrGmunWVvZU4xGEUtfRXAG3KCvR9YrzsXc08=",
]
}

26
live/stage/secrets/.terraform.lock.hcl generated Normal file
View File

@ -0,0 +1,26 @@
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/kubernetes" {
version = "2.38.0"
constraints = "~> 2.23"
hashes = [
"h1:soK8Lt0SZ6dB+HsypFRDzuX/npqlMU6M0fvyaR1yW0k=",
]
}
provider "registry.terraform.io/hashicorp/random" {
version = "3.8.0"
constraints = "~> 3.1"
hashes = [
"h1:BYpqK2+ZHqNF9sauVugKJSeFWMCx11I/z/1lMplwUC0=",
]
}
provider "registry.terraform.io/yandex-cloud/yandex" {
version = "0.181.0"
constraints = "~> 0.100"
hashes = [
"h1:n5o9pvUkrGmunWVvZU4xGEUtfRXAG3KCvR9YrzsXc08=",
]
}

View File

@ -97,18 +97,6 @@ validate-${job_prefix}:
- cd \${TG_ROOT}
- ls -la
- export TF_PLUGIN_CACHE_DIR=/root/.terraform.d/plugin-cache
- |
if [ -n "$needs_deps" ]; then
for dep in $needs_deps; do
dep_component=$(echo "$dep" | sed "s/validate-${env}-//")
dep_cache_path="${component_dir}/../${dep_component}/.terragrunt-cache"
if [ -d "${dep_cache_path}" ]; then
echo "Restoring .terragrunt-cache from ${dep_component}"
mkdir -p .terragrunt-cache
cp -r "${dep_cache_path}"/* .terragrunt-cache/ 2>/dev/null || true
fi
done
fi
script:
- env | grep -E "(S3_|AWS_)" || echo "No S3/AWS vars found"
- terragrunt init -upgrade -reconfigure