Hey @Biz Admin
From what I'm seeing, this is during the actions/checkout@v2
build task. I think you're checking for this setting in the pipeline, and it isn't found as an environment variable. You really don't need to have/refer to/set MONGODB_URL
as part of the pipeline, so I would remove it. Reason being, it's a setting your application will retrieve at runtime. However, if you want to set the app setting from the pipeline, you can do something like
- name: Set App Service App Setting
uses: Azure/appservice-settings@v1
with:
app-name: your-app-name
app-setting-json: |
{
"MONGODB_URL": "AppSettingValue"
}
or
- name: Log in to Azure CLI
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_SERVICE_PRINCIPAL }}
- name: Configure deployment and runtime settings on the webapp
run: |
az configure --defaults ${{ env.RESOURCE_GROUP }}
az webapp config appsettings --name ${{ env.WEBAPP_NAME }} --settings \
MONGODB_URL=${{ env.MongoDb }}
Assuming your created MongoDb
as an environment variable.