Compare commits
No commits in common. "ccb8c73ed4d7c2f99f8f9d1728437e6cbfee38cd" and "7687ab4926bc4fbe3ce35cf99f3d057b3462c8a8" have entirely different histories.
ccb8c73ed4
...
7687ab4926
14
.drone.star
14
.drone.star
@ -7,13 +7,13 @@ TEMPLATES = {
|
||||
"distro_releases": ["3.17", "3.18", "edge"],
|
||||
"image": "cr.smcm.xyz/coder-images/alpine",
|
||||
},
|
||||
# "aports": {
|
||||
# "distro_name": "Alpine Linux",
|
||||
# "distro_shortname": "alpine",
|
||||
# "distro_package_manager": "apk",
|
||||
# "distro_releases": ["edge"],
|
||||
# "image": "cr.smcm.xyz/coder-images/alpine",
|
||||
# },
|
||||
"aports": {
|
||||
"distro_name": "Alpine Linux",
|
||||
"distro_shortname": "alpine",
|
||||
"distro_package_manager": "apk",
|
||||
"distro_releases": ["edge"],
|
||||
"image": "cr.smcm.xyz/coder-images/alpine",
|
||||
},
|
||||
"ubuntu": {
|
||||
"distro_name": "Ubuntu Linux",
|
||||
"distro_shortname": "ubuntu",
|
||||
|
||||
@ -27,6 +27,15 @@ data "coder_parameter" "distro_release" {
|
||||
image = "{{image}}${data.coder_parameter.distro_release.value}:latest"
|
||||
{% endblock %}
|
||||
|
||||
{% block post_startup_script_setup_home %}
|
||||
{% if feature_flags is defined %}
|
||||
{% for feature_flag in feature_flags %}
|
||||
{% set template = distro_shortname + "/" + feature_flag + ".tf.jinja" %}
|
||||
{% inlcude template %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block startup_script_install_packages %}
|
||||
{% if distro_package_manager == "apt" %}
|
||||
sudo apt update
|
||||
|
||||
Reference in New Issue
Block a user