All checks were successful
continuous-integration/drone/push Build is passing
46 lines
1.2 KiB
Django/Jinja
46 lines
1.2 KiB
Django/Jinja
{% extends "base.tf.jinja" %}
|
|
|
|
{% if container_base_choices is not defined %}
|
|
{% set container_base_choices = [{"label": "Debian Linux", "suffix": ""}, {"label": "Alpine Linux", "suffix": "-alpine"}] %}
|
|
{% endif %}
|
|
|
|
{% block parameters %}
|
|
{{ super() }}
|
|
|
|
data "coder_parameter" "version" {
|
|
name = "{{lang}} Version"
|
|
description = "{{lang}} Version"
|
|
type = "string"
|
|
default = ""
|
|
|
|
mutable = true
|
|
option {
|
|
name = "Latest"
|
|
value = ""
|
|
}
|
|
{% for version in versions %}
|
|
option {
|
|
name = "{{ version }}"
|
|
value = "-{{ version }}"
|
|
}
|
|
{% endfor %}
|
|
}
|
|
|
|
data "coder_parameter" "container_base" {
|
|
name = "Container Base"
|
|
description = "Container Base"
|
|
type = "string"
|
|
default = "{{ container_base_choices[0]["suffix"] }}"
|
|
mutable = false
|
|
{% for container_base_choice in container_base_choices %}
|
|
option {
|
|
name = "{{ container_base_choice["label"] }}"
|
|
value = "{{ container_base_choice["suffix"] }}"
|
|
}
|
|
{% endfor %}
|
|
}
|
|
{% endblock %}
|
|
|
|
{% block kubernetes_pod_main_image %}
|
|
image = "cr.smcm.xyz/coder-images/{{lang}}${data.coder_parameter.version.value}${data.coder_parameter.container_base.value}:latest"
|
|
{% endblock %} |