Removed use of apt-key as it is deprecated
This commit is contained in:
parent
d3a3a08d5e
commit
f119b96cf3
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -23,8 +23,8 @@ jobs:
|
||||
uses: 'actions/checkout@v3'
|
||||
- name: 'Install dependencies'
|
||||
run: |
|
||||
curl -fsSL 'https://apt.releases.hashicorp.com/gpg' | sudo apt-key add -
|
||||
sudo apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
|
||||
curl --proto '=https' --tlsv1.2 -sSf 'https://apt.releases.hashicorp.com/gpg' | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/hashicorp.gpg
|
||||
printf '%s\n' "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/hashicorp.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list >/dev/null
|
||||
sudo apt-get update && sudo apt-get install -y --no-install-recommends packer
|
||||
- name: 'Validate configuration'
|
||||
run: |
|
||||
@ -44,8 +44,8 @@ jobs:
|
||||
uses: 'actions/checkout@v3'
|
||||
- name: 'Install dependencies'
|
||||
run: |
|
||||
curl -fsSL 'https://apt.releases.hashicorp.com/gpg' | sudo apt-key add -
|
||||
sudo apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
|
||||
curl --proto '=https' --tlsv1.2 -sSf 'https://apt.releases.hashicorp.com/gpg' | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/hashicorp.gpg
|
||||
printf '%s\n' "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/hashicorp.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list >/dev/null
|
||||
sudo apt-get update && sudo apt-get install -y --no-install-recommends terraform
|
||||
- name: 'Init Terraform'
|
||||
run: |
|
||||
@ -69,8 +69,8 @@ jobs:
|
||||
uses: 'actions/checkout@v3'
|
||||
- name: 'Install dependencies'
|
||||
run: |
|
||||
curl -fsSL 'https://apt.releases.hashicorp.com/gpg' | sudo apt-key add -
|
||||
sudo apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
|
||||
curl --proto '=https' --tlsv1.2 -sSf 'https://apt.releases.hashicorp.com/gpg' | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/hashicorp.gpg
|
||||
printf '%s\n' "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/hashicorp.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list >/dev/null
|
||||
sudo apt-get update && sudo apt-get install -y --no-install-recommends packer qemu-utils qemu-system-x86
|
||||
- name: 'Build image'
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user