From 0d33d852257a2635c52f04d4bdd072dffa547021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Kazami=20=5B=E4=B9=94=E6=B2=BB=C2=B7=E9=A2=A8?= =?UTF-8?q?=E8=A6=8B=5D?= Date: Fri, 17 Mar 2023 04:41:54 +0000 Subject: [PATCH] chore: test deploy configuration update --- .../workflows/eoefans-api-azure-deploy.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/eoefans-api-azure-deploy.yml b/.github/workflows/eoefans-api-azure-deploy.yml index afb9db6..35303cd 100644 --- a/.github/workflows/eoefans-api-azure-deploy.yml +++ b/.github/workflows/eoefans-api-azure-deploy.yml @@ -53,6 +53,34 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - uses: azure/login@v1 + with: + creds: '${{ secrets.AZURE_CREDENTIALS }}' + +# Uncomment the below action snippet if the Web app credentials are not updated as web app settings + - name: Set Web App configuration + uses: Azure/appservice-settings@v1 + with: + app-name: ${{ env.AZURE_WEBAPP_NAME }} + app-settings-json: | + [ + { + "name": "SENTRY_RELEASE", + "value": "${{ env.DEPLOY_VERSION }}", + "slotSetting": false + }, + { + "name": "SENTRY_ENV", + "value": "production", + "slotSetting": false + }, + { + "name": "VERSION", + "value": "${{ env.DEPLOY_VERSION }}", + "slotSetting": false + } + ] + - name: Deploy to Azure Web App id: deploy-to-webapp uses: azure/webapps-deploy@v2