mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
085f548333
* remove Sunday and Monday morning runs, little value * run test lint on main, as we do for all linters * fixup outdated instructions * use version hash instead of tags * use dependabot for github actions Signed-off-by: Fabian Kammel <fk@edgeless.systems>
30 lines
1.0 KiB
YAML
30 lines
1.0 KiB
YAML
name: Azure login
|
|
description: "Login to Azure & configure az CLI."
|
|
inputs:
|
|
azure_credentials:
|
|
description: 'Credentials authorized to create Constellation on Azure.'
|
|
required: true
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Install az CLI
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y
|
|
curl -sL https://packages.microsoft.com/keys/microsoft.asc |
|
|
gpg --dearmor |
|
|
sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
|
|
AZ_REPO=$(lsb_release -cs)
|
|
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" |
|
|
sudo tee /etc/apt/sources.list.d/azure-cli.list
|
|
sudo apt-get update
|
|
sudo apt-get install azure-cli -y
|
|
az help
|
|
shell: bash
|
|
# As described at:
|
|
# https://github.com/Azure/login#configure-deployment-credentials
|
|
- name: Login to Azure
|
|
uses: azure/login@24848bc889cfc0a8313c2b3e378ac0d625b9bc16
|
|
with:
|
|
creds: ${{ inputs.azure_credentials }}
|