Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix infrastructure build #30

Merged
merged 9 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading