update install az #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Bicep | |
on: | |
push: | |
branches: | |
- main # Change this to match the branch you want to trigger on | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Azure CLI | |
run: | | |
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash | |
az --version | |
- name: Check version | |
run: az --version | |
# - name: Set up Azure CLI | |
# uses: azure/login@v1 | |
# with: | |
# creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Install Bicep | |
run: | | |
curl -Lo bicep https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64 | |
chmod +x bicep | |
sudo mv bicep /usr/local/bin/ | |
shell: bash | |
- name: Build Bicep | |
run: | | |
bicep build main.bicep | |
env: | |
AZURE_CORE_OUTPUT: table |