Skip to content

Commit

Permalink
Fix infrastructure build (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
ondfisk authored Sep 4, 2024
1 parent d546bbf commit 0a64466
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
- name: Get Connection String
uses: azure/cli@v2
with:
azcliversion: latest
azcliversion: 2.63.0
inlineScript: |
echo "CONNECTION_STRING=$(az webapp config connection-string list --resource-group ${{ vars.RESOURCE_GROUP }} --name ${{ vars.WEBAPP }} --slot ${{ vars.DEPLOYMENT_SLOT }} --query [].value --output tsv)" >> "$GITHUB_ENV"
Expand All @@ -118,7 +118,7 @@ jobs:
- name: Deploy Web App
uses: azure/cli@v2
with:
azcliversion: latest
azcliversion: 2.63.0
inlineScript: |
az webapp deploy --resource-group ${{ vars.RESOURCE_GROUP }} --name ${{ vars.WEBAPP }} --slot ${{ vars.DEPLOYMENT_SLOT }} --src-path app.zip --clean
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
- name: Get Connection String
uses: azure/cli@v2
with:
azcliversion: latest
azcliversion: 2.63.0
inlineScript: |
echo "CONNECTION_STRING=$(az webapp config connection-string list --resource-group ${{ vars.RESOURCE_GROUP }} --name ${{ vars.WEBAPP }} --query [].value --output tsv)" >> "$GITHUB_ENV"
Expand All @@ -165,6 +165,6 @@ jobs:
- name: Swap Staging With Production
uses: azure/cli@v2
with:
azcliversion: latest
azcliversion: 2.63.0
inlineScript: |
az webapp deployment slot swap --resource-group ${{ vars.RESOURCE_GROUP }} --name ${{ vars.WEBAPP }} --slot ${{ vars.DEPLOYMENT_SLOT }}
8 changes: 4 additions & 4 deletions .github/workflows/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ jobs:
- name: Lint Bicep Files
uses: azure/cli@v2
with:
azcliversion: latest
azcliversion: 2.63.0
inlineScript: |
az bicep lint --file infrastructure/main.bicep
az bicep lint --file infrastructure/main.bicepparam
- name: Build Bicep Files
uses: azure/cli@v2
with:
azcliversion: latest
azcliversion: 2.63.0
inlineScript: |
az bicep build --file infrastructure/main.bicep --outfile infrastructure/main.json
az bicep build-params --file infrastructure/main.bicepparam --outfile infrastructure/main.parameters.json
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Create Resource Group
uses: azure/cli@v2
with:
azcliversion: latest
azcliversion: 2.63.0
inlineScript: |
az group create --name ${{ vars.RESOURCE_GROUP }} --location ${{ vars.LOCATION }}
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
- name: Create Resource Group
uses: azure/cli@v2
with:
azcliversion: latest
azcliversion: 2.63.0
inlineScript: |
az group create --name ${{ vars.RESOURCE_GROUP }} --location ${{ vars.LOCATION }}
Expand Down

0 comments on commit 0a64466

Please sign in to comment.