Skip to content

Commit 827da23

Browse files
committed
Fix deployment: Switch from GitHub Container Registry to Azure Container Registry
- Update Docker build workflow to push to tpsappscriptingacr.azurecr.io - Update Azure deployment to pull from Azure Container Registry - Configure ACR authentication using secrets.ACR_USERNAME/ACR_PASSWORD - Resolves ImagePullFailure error in Azure Web App deployment
1 parent a84933c commit 827da23

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/deploy-azure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ on:
1212

1313
env:
1414
AZURE_WEBAPP_NAME: 'tps-app-scripting-editor'
15-
REGISTRY: ghcr.io
16-
IMAGE_NAME: ${{ github.repository }}/app-scripting-editor
15+
REGISTRY: tpsappscriptingacr.azurecr.io
16+
IMAGE_NAME: app-scripting-editor
1717

1818
jobs:
1919
deploy:

.github/workflows/docker-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ on:
1515
workflow_dispatch:
1616

1717
env:
18-
REGISTRY: ghcr.io
19-
IMAGE_NAME: ${{ github.repository }}/app-scripting-editor
18+
REGISTRY: tpsappscriptingacr.azurecr.io
19+
IMAGE_NAME: app-scripting-editor
2020

2121
jobs:
2222
build-and-push:
@@ -32,12 +32,12 @@ jobs:
3232
- name: Set up Docker Buildx
3333
uses: docker/setup-buildx-action@v3
3434

35-
- name: Log in to Container Registry
35+
- name: Log in to Azure Container Registry
3636
uses: docker/login-action@v3
3737
with:
3838
registry: ${{ env.REGISTRY }}
39-
username: ${{ github.actor }}
40-
password: ${{ secrets.GITHUB_TOKEN }}
39+
username: ${{ secrets.ACR_USERNAME }}
40+
password: ${{ secrets.ACR_PASSWORD }}
4141

4242
- name: Extract metadata
4343
id: meta

0 commit comments

Comments
 (0)