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 9c175e8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 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,34 @@ jobs:
env=dev
type=api
- name: Install Azure CLI
uses: azure/setup-azure-cli@v1
with:
version: latest

- 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 9c175e8

Please sign in to comment.