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/python.jinja
Steve McMaster 8fa9c9ed45
Some checks reported errors
continuous-integration/drone/push Build was killed
test
2023-08-05 00:43:26 -04:00

32 lines
762 B
Django/Jinja

{% extends "base.tf.jinja" %}
{% block locals %}
alpine = $data.coder_parameter.use_alpine.value ? "-alpine{{ alpine_version | replace(".", ",") }}" : ""
{% endblock %}
{% block parameters %}
{{ super() }}
data "coder_parameter" "python_version" {
name = "Python Version"
description = "Python Version"
type = "string"
default = ""
mutable = true
option {
name = "Latest"
value = ""
}
{% for version in python_versions.split(",") %}
option {
name = "{{ version }}"
value = "-{{ version | replace(".", "") }}"
}
{% endfor %}
}
{% endblock %}
{% block kubernetes_pod_main_image %}
image = "{{image}}${data.coder_parameter.python_version.value}${locals.alpine}:latest"
{% endblock %}