All checks were successful
continuous-integration/drone/push Build is passing
35 lines
784 B
Django/Jinja
35 lines
784 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 %}
|
|
}
|
|
{% endblock %}
|
|
|
|
{% block kubernetes_pod_main_image %}
|
|
image = "cr.smcm.xyz/coder-images/{{lang}}:{{tag_prefix}}${data.coder_parameter.version.value}{{tag_suffix}}"
|
|
{% endblock %} |