KozmikNano
04/13/2023, 3:38 PM/home/
Ben
04/13/2023, 3:54 PMKozmikNano
04/13/2023, 4:11 PMBen
04/13/2023, 4:21 PMKozmikNano
04/13/2023, 4:26 PMJanL
04/13/2023, 7:34 PMJanL
04/13/2023, 7:36 PMJanL
04/13/2023, 7:37 PMcolin (rust enthusiast)
04/13/2023, 8:01 PMTIEB62
04/13/2023, 8:39 PMJanL
04/13/2023, 8:41 PMJanL
04/13/2023, 8:42 PMTIEB62
04/13/2023, 8:42 PMJanL
04/13/2023, 8:45 PMTIEB62
04/13/2023, 8:47 PMTIEB62
04/13/2023, 8:47 PMJanL
04/13/2023, 8:49 PMenv
in this file gives some hits.KozmikNano
04/13/2023, 9:03 PMKozmikNano
04/13/2023, 9:03 PMTIEB62
04/13/2023, 9:03 PMKozmikNano
04/13/2023, 9:04 PMKozmikNano
04/14/2023, 1:43 AMAtif
04/14/2023, 3:14 AMJanL
04/14/2023, 9:42 AMJanL
04/14/2023, 9:45 AM$CI_PIPELINE_IID-$CI_COMMIT_SHORT_SHA
and I want to use this value then in my template which gets pushed from the same pipeline run. So I've created a terraform variable
variable "IMAGE_NAME" {
type = "string"
}
which I then use in the docker related resources.JanL
04/14/2023, 9:50 AM⯠coder template push --variable=var.BAR=bar testfoo
version mismatch: client v0.21.2+872037b, server v0.22.0+3ff2ae1
download the server version with: 'curl -L https://coder.com/install.sh | sh -s -- --version 0.22.0'
> Upload "."? (yes/no) yes
ā Queued [435ms]
ā Adding README.md... [0ms]
ā Setting up [8ms]
ā Parsing template parameters [13ms]
ā Cleaning Up [9ms]
This template has required variables! They are scoped to
the template, and not viewable after being set.
var.BAR
> Enter a value: ^C
I've tried --variable=var.NAME=value
and --variable=NAME=value
with no successJanL
04/14/2023, 10:15 AMprovider "coder" {
feature_use_managed_variables = true
}
is needed - Is this correct? (always good to have the unittests for a feature available šKozmikNano
04/14/2023, 10:27 AMcookiesowns
04/14/2023, 4:17 PMkyle
04/14/2023, 4:35 PM