Skip to content

Commit

Permalink
chore: update credetials
Browse files Browse the repository at this point in the history
  • Loading branch information
kazami139 committed Mar 17, 2023
1 parent 0d33d85 commit 7e4c557
Showing 1 changed file with 77 additions and 16 deletions.
93 changes: 77 additions & 16 deletions .github/workflows/eoefans-api-azure-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
run-name: "Deploy EOEFANS API to Azure: version ${{ inputs.deploy_version }}"

env:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
AZURE_WEBAPP_NAME: "eoefans-api" # set this to your application's name
IMAGE_REGISTRY: "containers.vlink.dev"
IMAGE_REPO: "eoefans"
Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:

- uses: azure/login@v1
with:
creds: '${{ secrets.AZURE_CREDENTIALS }}'
creds: '${{ env.AZURE_CREDENTIALS }}'

# Uncomment the below action snippet if the Web app credentials are not updated as web app settings
- name: Set Web App configuration
Expand All @@ -64,21 +65,81 @@ jobs:
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": "APPINSIGHTS_INSTRUMENTATIONKEY",
"value": "f2727acd-35c0-4ba7-8abf-33bea2328a2a",
"slotSetting": false
},
{
"name": "APPLICATIONINSIGHTS_CONNECTION_STRING",
"value": "InstrumentationKey=f2727acd-35c0-4ba7-8abf-33bea2328a2a;IngestionEndpoint=https://eastasia-0.in.applicationinsights.azure.com/;LiveEndpoint=https://eastasia.livediagnostics.monitor.azure.com/",
"slotSetting": false
},
{
"name": "ApplicationInsightsAgent_EXTENSION_VERSION",
"value": "~3",
"slotSetting": false
},
{
"name": "DOCKER_ENABLE_CI",
"value": "true",
"slotSetting": false
},
{
"name": "DOCKER_REGISTRY_SERVER_PASSWORD",
"value": "${{ secrets.GITHUB_TOKEN }}",
"slotSetting": false
},
{
"name": "DOCKER_REGISTRY_SERVER_URL",
"value": "https://${{ env.IMAGE_REGISTRY }}",
"slotSetting": false
},
{
"name": "DOCKER_REGISTRY_SERVER_USERNAME",
"value": "${{ github.actor }}",
"slotSetting": false
},
{
"name": "PORT",
"value": "8080",
"slotSetting": false
},
{
"name": "WEBSITE_HEALTHCHECK_MAXPINGFAILURES",
"value": "10",
"slotSetting": false
},
{
"name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE",
"value": "false",
"slotSetting": false
},
{
"name": "WEBSITES_PORT",
"value": "8080",
"slotSetting": false
},
{
"name": "XDT_MicrosoftApplicationInsights_Mode",
"value": "Recommended",
"slotSetting": false
},
{
"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
Expand Down

0 comments on commit 7e4c557

Please sign in to comment.