mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
code-server-terraform update/add workflows
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
source /etc/lsb-release
|
||||
|
||||
[[ ! -f "/etc/apt/sources.list.d/hashicorp.list" ]] &&
|
||||
curl -s https://apt.releases.hashicorp.com/gpg | apt-key add - &&
|
||||
echo "deb https://apt.releases.hashicorp.com ${DISTRIB_CODENAME} main" \
|
||||
>/etc/apt/sources.list.d/hashicorp.list
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
apt-get update
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
echo "**** Installing Terraform"
|
||||
apt-get install -y \
|
||||
terraform
|
||||
|
||||
install-extension hashicorp.terraform
|
||||
@@ -1,14 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if ! dpkg -l | grep gnupg > /dev/null; then
|
||||
apt-get update && apt-get install -y gnupg
|
||||
fi
|
||||
|
||||
if [ ! -f "/etc/apt/sources.list.d/hashicorp.list" ]; then
|
||||
echo "**** Adding terraform packages to install list ****"
|
||||
curl -s https://apt.releases.hashicorp.com/gpg | apt-key add -
|
||||
curl -fsSL https://apt.releases.hashicorp.com/gpg | tee /usr/share/keyrings/hashicorp.gpg >/dev/null
|
||||
source /etc/lsb-release
|
||||
echo "deb https://apt.releases.hashicorp.com ${DISTRIB_CODENAME} main" > /etc/apt/sources.list.d/hashicorp.list
|
||||
echo "deb [signed-by=/usr/share/keyrings/hashicorp.gpg] https://apt.releases.hashicorp.com ${DISTRIB_CODENAME} main" > /etc/apt/sources.list.d/hashicorp.list
|
||||
echo "terraform" >> /mod-repo-packages-to-install.list
|
||||
else
|
||||
echo "**** Terraform packages already installed, skipping ****"
|
||||
|
||||
Reference in New Issue
Block a user