Skip to content

Commit

Permalink
add credentials for private image
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed Jan 18, 2024
1 parent 24fbb9c commit 539a3ef
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build_and_deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,29 @@ jobs:
env=dev
type=api
- 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
with:
Expand Down

0 comments on commit 539a3ef

Please sign in to comment.