This repository has been archived on 2026-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
coder-templates/_lang.tf.j2
Steve McMaster 62c6f1fa15
Some checks failed
continuous-integration/drone/push Build is failing
Reduce templates to those with matching container images
2024-07-21 12:05:04 -04:00

34 lines
769 B
Django/Jinja

{% extends "base.tf.j2" %}
{% if tag_prefix is not defined %}
{% set tag_prefix = "" %}
{% endif %}
{% if tag_suffix is not defined %}
{% set tag_suffix = "" %}
{% endif %}
{% block parameters %}
{{ super() }}
data "coder_parameter" "version" {
name = "{{lang}} Version"
description = "{{lang}} Version"
type = "string"
default = "{{ versions[-1] }}"
{% if lang_icon %}
icon = "{{ lang_icon }}"
{% endif %}
mutable = true
{% for version in versions %}
option {
name = "{{ version }}"
value = "{{ version }}"
}
{% endfor %}
}
{% block kubernetes_pod_main_image %}
image = "cr.smcm.xyz/coder-images/{{lang}}:{{tag_prefix}}${data.coder_parameter.version.value}{{tag_suffix}}"
{% endblock %}