Skip to content

Commit

Permalink
135 Deploy to correct Azure resources (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbjoralt authored Oct 19, 2023
1 parent 9ce597d commit c35104e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,14 @@ jobs:
dotnet publish -c Release --property:PublishDir='./build'
# Deploy to Azure Web apps
- name: Deploy to App Service (NO)
- name: Deploy to App Service
uses: azure/webapps-deploy@v2
with:
app-name: vibes-backend-norway-dev
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_BACKEND_NO }} # Define secret variable in repository settings as per action documentation
package: 'backend/Api/build'

# Deploy to Azure Web apps
- name: Deploy to App Service (SE)
uses: azure/webapps-deploy@v2
with:
app-name: vibes-backend-sweden-dev
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_BACKEND_SE }} # Define secret variable in repository settings as per action documentation
app-name: vibes-backend-dev
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_BACKEND }} # Define secret variable in repository settings as per action documentation
package: 'backend/Api/build'


build-frontend:
runs-on: ubuntu-latest

Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,11 @@ jobs:
dotnet publish -c Release --property:PublishDir='./build'
# Deploy to Azure Web apps
- name: Deploy to App Service (NO)
- name: Deploy to App Service
uses: azure/webapps-deploy@v2
with:
app-name: vibes-backend-norway-prod
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_BACKEND_NO }} # Define secret variable in repository settings as per action documentation
package: 'backend/Api/build'

# Deploy to Azure Web apps
- name: Deploy to App Service (SE)
uses: azure/webapps-deploy@v2
with:
app-name: vibes-backend-sweden-prod
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_BACKEND_SE }} # Define secret variable in repository settings as per action documentation
app-name: vibes-backend-prod
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_BACKEND }} # Define secret variable in repository settings as per action documentation
package: 'backend/Api/build'

build-frontend:
Expand Down

0 comments on commit c35104e

Please sign in to comment.