Skip to content

Commit

Permalink
setting manually updated in Azure Portal
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed Jan 18, 2024
1 parent 4d817a1 commit e13c6ae
Showing 1 changed file with 27 additions and 25 deletions.
52 changes: 27 additions & 25 deletions .github/workflows/build_and_deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,33 @@ jobs:
env=dev
type=api
- name: Install Azure CLI
uses: azure/CLI@v1

- name: Set Web App ACR authentication
uses: Azure/appservice-settings@v1
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
app-settings-json: |
[
{
"name": "DOCKER_REGISTRY_SERVER_URL",
"value": "https://ghcr.io",
"slotSetting": false
},
{
"name": "DOCKER_REGISTRY_SERVER_USERNAME",
"value": "${{ secrets.REGISTRY_USERNAME }}",
"slotSetting": false
},
{
"name": "DOCKER_REGISTRY_SERVER_PASSWORD",
"value": "${{ secrets.REGISTRY_PASSWORD }}",
"slotSetting": false
}
]
# - name: Login for az cli commands
# uses: azure/login@v1
# with:
# creds: ${{ secrets.AZURE_CREDENTIALS }}

# - name: Set Web App ACR authentication
# uses: Azure/appservice-settings@v1
# with:
# app-name: ${{ env.AZURE_WEBAPP_NAME }}
# app-settings-json: |
# [
# {
# "name": "DOCKER_REGISTRY_SERVER_URL",
# "value": "https://ghcr.io",
# "slotSetting": false
# },
# {
# "name": "DOCKER_REGISTRY_SERVER_USERNAME",
# "value": "${{ secrets.REGISTRY_USERNAME }}",
# "slotSetting": false
# },
# {
# "name": "DOCKER_REGISTRY_SERVER_PASSWORD",
# "value": "${{ secrets.REGISTRY_PASSWORD }}",
# "slotSetting": false
# }
# ]

- name: 'Deploy to Azure WebApp'
uses: azure/webapps-deploy@v2
Expand Down

0 comments on commit e13c6ae

Please sign in to comment.