Skip to content

Commit

Permalink
Deployment to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard Keilholz committed Sep 26, 2024
1 parent 219f54e commit b791ac3
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- name: Build & Push
working-directory: infrastructure
run: |
bicep build-params prod.main.bicepparam
bicep build-params test.main.bicepparam
az bicep build --file main.bicep
- name: Publish Artifact
Expand All @@ -43,7 +44,7 @@ jobs:
name: bicep-templates
path: infrastructure/*.json

infrastructure-incremental:
test-deployment:
needs: [publish-bicep, versionize]
runs-on: ubuntu-latest
steps:
Expand All @@ -65,3 +66,24 @@ jobs:
uses: Azure/cli@v1
with:
inlineScript: az deployment sub create --name wam-integration-northeur --location northeurope --template-file ./infrastructure/main.json --parameters ./infrastructure/test.main.json

production-deployment:
needs: [publish-bicep, versionize]
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: bicep-templates
path: ./infrastructure
- name: Az CLI login
uses: azure/login@v1
with:
client-id: ${{ secrets.WAM_PRD_CLIENT_ID }}
tenant-id: ${{ secrets.WAM_PRD_TENANT_ID }}
subscription-id: ${{ secrets.WAM_PRD_SUBSCRIPTION_ID }}
- name: Deploy Infrastructure
id: arm
uses: Azure/cli@v1
with:
inlineScript: az deployment sub create --name wam-integration-northeur --location northeurope --template-file ./infrastructure/main.json --parameters ./infrastructure/prod.main.json
4 changes: 4 additions & 0 deletions infrastructure/prod.main.bicepparam
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
using './main.bicep'

param runtimeEnvironment = 'prd'
param appBuildersGroup = '397a477e-c6d9-49ff-8652-b434a7a90a82'

0 comments on commit b791ac3

Please sign in to comment.