Removed use of apt-key as it is deprecated

This commit is contained in:
Héctor Molinero Fernández 2022-04-27 19:25:43 +02:00
parent d3a3a08d5e
commit f119b96cf3

View File

@ -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: |