initial attempt at IaC and CI/CD
This commit is contained in:
parent
597c7e4e0b
commit
820b251c61
11 changed files with 355 additions and 1 deletions
33
.github/workflows/infra.yml
vendored
Normal file
33
.github/workflows/infra.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
name: Deploy infrastructure
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- infrastructure/**
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
paths:
|
||||
- infrastructure/**
|
||||
types: [opened, synchronize, reopened, closed]
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
production:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: |
|
||||
infrastructure
|
||||
|
||||
- name: Deploy bicep
|
||||
uses: Azure/cli@v2
|
||||
with:
|
||||
inlineScript: |
|
||||
az deployment sub create --location westeurope --template-file infrastructure/main.bicep --parameters infrastructure/params/prod.bicepparam
|
Loading…
Add table
Add a link
Reference in a new issue