-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 874 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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