fix: use plain string for cache_from/cache_to and fix caretta helm_release

- cache_from/cache_to must be plain strings, not YAML lists — the
  plugin-docker-buildx treats them as single string values and the
  Woodpecker settings layer was splitting comma-separated list items
  into separate --cache-from flags (type=registry and ref=... separately)
- caretta.tf: replace deprecated set{} blocks with values=[yamlencode()]
  to fix Terraform plan error with newer Helm provider
This commit is contained in:
Viktor Barzin 2026-02-28 18:47:20 +00:00
parent 0ebf850893
commit 87fc11121d
3 changed files with 12 additions and 17 deletions

View file

@ -26,10 +26,8 @@ steps:
dockerfile: cli/Dockerfile
context: cli
auto_tag: true
cache_from:
- "type=registry,ref=registry.viktorbarzin.lan:5050/infra:buildcache"
cache_to:
- "type=registry,ref=registry.viktorbarzin.lan:5050/infra:buildcache,mode=max"
cache_from: "type=registry,ref=registry.viktorbarzin.lan:5050/infra:buildcache"
cache_to: "type=registry,ref=registry.viktorbarzin.lan:5050/infra:buildcache,mode=max"
buildkit_config: |
[registry."registry.viktorbarzin.lan:5050"]
http = true

View file

@ -29,10 +29,8 @@ steps:
platforms: linux/amd64
provenance: false
tags: latest
cache_from:
- "type=registry,ref=registry.viktorbarzin.lan:5050/f1-stream:buildcache"
cache_to:
- "type=registry,ref=registry.viktorbarzin.lan:5050/f1-stream:buildcache,mode=max"
cache_from: "type=registry,ref=registry.viktorbarzin.lan:5050/f1-stream:buildcache"
cache_to: "type=registry,ref=registry.viktorbarzin.lan:5050/f1-stream:buildcache,mode=max"
buildkit_config: |
[registry."registry.viktorbarzin.lan:5050"]
http = true

View file

@ -7,15 +7,14 @@ resource "helm_release" "caretta" {
chart = "caretta"
version = "0.0.16"
set {
name = "grafana.enabled"
value = "false"
}
set {
name = "victoria-metrics-single.enabled"
value = "false"
}
values = [yamlencode({
grafana = {
enabled = false
}
victoria-metrics-single = {
enabled = false
}
})]
}
resource "kubernetes_service" "caretta_metrics" {