update
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Steve McMaster 2023-10-14 01:35:36 -04:00
parent 5a62cfec2e
commit 2ca395de62
3 changed files with 28 additions and 3 deletions

View File

@ -57,9 +57,6 @@ data "coder_parameter" "alpine_release" {
)
fi
git config --global user.name "Steve McMaster"
git config --global user.email "steve@mcmaster.io"
# Generate abuild keys if needed
if [ ! -f "$HOME/.abuild/abuild.conf" ]; then
abuild-keygen -a -i -n
@ -79,3 +76,11 @@ data "coder_parameter" "alpine_release" {
sudo apk update
{% endif %}
{% endblock %}
{% block startup_script_install_packages %}
sudo apk update
{% if packages_to_install is defined %}
sudo apk add {{ packages_to_install | join(" ") }}
{% endif %}
{% endblock %}

View File

@ -147,11 +147,23 @@ resource "coder_agent" "main" {
# home folder can be empty, so copying default bash settings
[ ! -f ~/.profile ] && [ -f /etc/skel/.profile ] && cp /etc/skel/.profile $HOME
[ ! -f ~/.bashrc ] && [ -f /etc/skel/.bashrc ] && cp /etc/skel/.bashrc $HOME
git config --global user.name data.coder_workspace.me.owner
git config --global user.email data.coder_workspace.me.owner_email
{% endblock %}
{% block post_startup_script_setup_home %}
{% endblock %}
{% block pre_startup_script_install_packages %}
{% endblock %}
{% block startup_script_install_packages %}
{% endblock %}
{% block post_startup_script_install_packages %}
{% endblock %}
{% block pre_startup_script_install_code_server %}
{% endblock %}

View File

@ -26,3 +26,11 @@ data "coder_parameter" "ubuntu_release" {
{% block kubernetes_pod_main_image %}
image = "{{image}}${data.coder_parameter.ubuntu_release.value}:latest"
{% endblock %}
{% block startup_script_install_packages %}
sudo apt update
{% if packages_to_install is defined %}
sudo apt install {{ packages_to_install | join(" ") }}
{% endif %}
{% endblock %}