@@ -31,38 +31,28 @@ jobs:
3131 # env:
3232 # NONINTERACTIVE: 1
3333
34- - name : Install Packer
35- run : |
36- sudo wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
37- sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(grep -oP '(?<=UBUNTU_CODENAME=).*' /etc/os-release || lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
38- sudo apt update
39- sudo apt install packer
40-
41- - name : Install Talosctl
42- run : curl -sL https://talos.dev/install | sh
34+ # - name: Install Packer
35+ # run: |
36+ # sudo wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
37+ # sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(grep -oP '(?<=UBUNTU_CODENAME=).*' /etc/os-release || lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
38+ # sudo apt update
39+ # sudo apt install packer
4340
44- - name : Test
45- shell : sh
46- run : |
47- set -eu
48- missing=0
49- if ! command -v packer >/dev/null 2>&1; then
50- printf '\n%s' ' - packer is not installed or not in PATH. Install it at https://developer.hashicorp.com/packer/install' >&2
51- missing=1
52- fi
53- if ! command -v jq >/dev/null 2>&1; then
54- printf '\n%s' ' - jq is not installed or not in PATH. Install it at https://jqlang.org/download/' >&2
55- missing=1
56- fi
57- if ! command -v talosctl >/dev/null 2>&1; then
58- printf '\n%s' ' - talosctl is not installed or not in PATH. Install it at https://www.talos.dev/latest/talos-guides/install/talosctl' >&2
59- missing=1
60- fi
61- printf '%s' '{}'
62- exit "$missing"
41+ # - name: Install Talosctl
42+ # run: curl -sL https://talos.dev/install | sh
6343
6444 - name : Terraform plan
6545 uses : dflook/terraform-plan@v2
6646 with :
6747 path : infra
68- backend_config : bucket=${{ env.STATE_BUCKET_NAME }} key=${{ env.STATE_BUCKET_KEY }}
48+ backend_config : bucket=${{ env.STATE_BUCKET_NAME }} key=${{ env.STATE_BUCKET_KEY }}
49+ env :
50+ TERRAFORM_PRE_RUN : |
51+ # Install latest Packer
52+ sudo wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
53+ sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(grep -oP '(?<=UBUNTU_CODENAME=).*' /etc/os-release || lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
54+ sudo apt update
55+ sudo apt install packer
56+
57+ # Install latest Talosctl
58+ curl -sL https://talos.dev/install | sh
0 commit comments