Compare commits
2 Commits
7687ab4926
...
ccb8c73ed4
| Author | SHA1 | Date | |
|---|---|---|---|
| ccb8c73ed4 | |||
| f0dd368d0c |
14
.drone.star
14
.drone.star
@ -7,13 +7,13 @@ TEMPLATES = {
|
|||||||
"distro_releases": ["3.17", "3.18", "edge"],
|
"distro_releases": ["3.17", "3.18", "edge"],
|
||||||
"image": "cr.smcm.xyz/coder-images/alpine",
|
"image": "cr.smcm.xyz/coder-images/alpine",
|
||||||
},
|
},
|
||||||
"aports": {
|
# "aports": {
|
||||||
"distro_name": "Alpine Linux",
|
# "distro_name": "Alpine Linux",
|
||||||
"distro_shortname": "alpine",
|
# "distro_shortname": "alpine",
|
||||||
"distro_package_manager": "apk",
|
# "distro_package_manager": "apk",
|
||||||
"distro_releases": ["edge"],
|
# "distro_releases": ["edge"],
|
||||||
"image": "cr.smcm.xyz/coder-images/alpine",
|
# "image": "cr.smcm.xyz/coder-images/alpine",
|
||||||
},
|
# },
|
||||||
"ubuntu": {
|
"ubuntu": {
|
||||||
"distro_name": "Ubuntu Linux",
|
"distro_name": "Ubuntu Linux",
|
||||||
"distro_shortname": "ubuntu",
|
"distro_shortname": "ubuntu",
|
||||||
|
|||||||
@ -27,15 +27,6 @@ data "coder_parameter" "distro_release" {
|
|||||||
image = "{{image}}${data.coder_parameter.distro_release.value}:latest"
|
image = "{{image}}${data.coder_parameter.distro_release.value}:latest"
|
||||||
{% endblock %}
|
{% 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 %}
|
{% block startup_script_install_packages %}
|
||||||
{% if distro_package_manager == "apt" %}
|
{% if distro_package_manager == "apt" %}
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
|||||||
Reference in New Issue
Block a user