Update the Microsoft apt repo receiving key (#37)

This fixes the Azure CLI install script
This commit is contained in:
Aaron Schlesinger 2017-11-10 12:16:48 -08:00 коммит произвёл GitHub
Родитель b8cacee7c1
Коммит 3ddf4d1774
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 33 добавлений и 3 удалений

Просмотреть файл

@ -19,6 +19,20 @@ jobs:
name: Helm Lint name: Helm Lint
command: ./helm-lint.sh command: ./helm-lint.sh
working_directory: scripts working_directory: scripts
# this step tests the install script for the Azure CLI
test-install-az-cli:
docker:
- image: quay.io/deis/go-dev:v1.2.0
steps:
- checkout
- run:
name: Install Basic Utilities
command: ./install-base-prereqs.sh
working_directory: scripts
- run:
name: Install the Azure CLI
command: ./install-azure-cli.sh
working_directory: scripts
helm-sync: helm-sync:
docker: docker:
- image: quay.io/deis/go-dev:v1.2.0 - image: quay.io/deis/go-dev:v1.2.0
@ -48,6 +62,9 @@ workflows:
build: build:
jobs: jobs:
- build - build
test-install-az-cli:
jobs:
- test-install-az-cli
build-and-deploy: build-and-deploy:
jobs: jobs:
- build - build

Просмотреть файл

@ -1,8 +1,21 @@
#!/bin/bash #!/bin/bash
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | sudo tee /etc/apt/sources.list.d/azure-cli.list # About
apt-key adv --keyserver packages.microsoft.com --recv-keys 417A0893 #
# This script installs the Azure CLI. It copies the steps from the following link:
#
# https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest
#
# under the "Install with apt package manager" section
# first do an update and install apt-transport-https
apt-get update
apt-get install -y apt-transport-https apt-get install -y apt-transport-https
# update package lists so we get the Microsoft packages (including azure-cli)
# the add keys for the MSFT apt repo
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | tee /etc/apt/sources.list.d/azure-cli.list
apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893
# then update again and install azure-cli
apt-get update apt-get update
apt-get install -y azure-cli apt-get install -y azure-cli