C
Coder.com•3w ago
molitann

ENVBUILDER_CACHE_REPO is always empty

Hi, I'm not sure what I'm doing wrong but ENVBUILDER_CACHE_REPO always remains empty in the env of the pod, even after multiple restarts. Here are some snippets of my config. LMK if you need more of my configuration and I will provide. I'm using latest versions of coder/coder, hashicorp/kubernetes and coder/envbuilder providers. Envbuilder image is on 1.0.3. Thanks in advance guys 🙂 Otherwise, it works perfectly
locals {
...
envbuilder_env = {
# ENVBUILDER_GIT_URL and ENVBUILDER_CACHE_REPO will be overridden by the provider
# if the cache repo is enabled.
"ENVBUILDER_GIT_URL" : local.repo_url,
...
}
}

variable "cache_repo" {
default = "url-path-to-our-gitlab-registry"
description = "Use a container registry as a cache to speed up builds."
type = string
}
locals {
...
envbuilder_env = {
# ENVBUILDER_GIT_URL and ENVBUILDER_CACHE_REPO will be overridden by the provider
# if the cache repo is enabled.
"ENVBUILDER_GIT_URL" : local.repo_url,
...
}
}

variable "cache_repo" {
default = "url-path-to-our-gitlab-registry"
description = "Use a container registry as a cache to speed up builds."
type = string
}
5 Replies
Codercord
Codercord•3w ago
<#1292833190117113997>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
molitann
molitann•3w ago
build logs
molitann
molitann•3w ago
Could it be because /workspaces is only an emptyDir? I have no clue what I changed, but it now works 😄
Phorcys
Phorcys•3w ago
great! if you ever realize what you've changed please share!
Codercord
Codercord•3w ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server