From c35104ed619617fb8b6633530772c61037d5efff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bj=C3=B8ralt?= <61310258+jonasbjoralt@users.noreply.github.com> Date: Thu, 19 Oct 2023 14:01:22 +0200 Subject: [PATCH] 135 Deploy to correct Azure resources (#154) --- .github/workflows/deploy-dev.yml | 15 ++++----------- .github/workflows/deploy-prod.yml | 14 +++----------- 2 files changed, 7 insertions(+), 22 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index c34ac3ba..ace77f45 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -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 diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 955a70fa..d9d262ee 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -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: