Skip to content

run bicep

run bicep #17

Workflow file for this run

name: Deploy Bicep
on:
push:
branches:
- main # Change this to match the branch you want to trigger on
permissions:
id-token: write
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 'Az CLI login'
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: 'Run az commands'
run: |
az account show
az group list
- name: Deploy Bicep Template
run: |
bicep build main.bicep
az deployment sub create --name GitHubActionsDeployment --template-file main.json
# run: az deployment sub create --name GitHubActionsDeployment --location WestEurope --template-file ./main.bicep --parameters location=WestEurope
# env:
# AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}