Skip to content

Instantly share code, notes, and snippets.

@segraef
Created September 4, 2020 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save segraef/84d60537e65ef3cb2e460b2882c985eb to your computer and use it in GitHub Desktop.
Save segraef/84d60537e65ef3cb2e460b2882c985eb to your computer and use it in GitHub Desktop.
GitHub Action bicep
name: bicep
on:
push:
branches: [ v1 ]
pull_request:
branches: [ master ]
jobs:
bicep:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Azure Login
uses: segraef/azlogin@v1
with:
clientId: "${{ secrets.clientId }}"
clientSecret: "${{ secrets.clientSecret }}"
tenantId: "${{ secrets.tenantId }}"
subscriptionId: "${{ secrets.subscriptionId }}"
- name: Bicep build and deploy
uses: segraef/bicep@v1
with:
bicepFile: main.bicep
location: eastus
rg: bicep-rg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment