Skip to content

Commit f4c506b

Browse files
committed
perf: add dev registry login to az acr release
1 parent c2718ad commit f4c506b

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/az_acr_release.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
AZURE_CONTAINER_REGISTRY: ${{ vars.AZURE_CONTAINER_REGISTRY }}
1414
ACR_LOGIN_USERNAME: ${{ secrets.ACR_LOGIN_USERNAME }}
1515
ACR_LOGIN_PASSWORD: ${{ secrets.ACR_LOGIN_PASSWORD }}
16+
DEV_CONTAINER_REGISTRY: ${{ vars.DEV_CONTAINER_REGISTRY }}
17+
DEV_LOGIN_USERNAME: ${{ secrets.DEV_LOGIN_USERNAME }}
18+
DEV_LOGIN_PASSWORD: ${{ secrets.DEV_LOGIN_PASSWORD }}
1619
IMAGE_TAG: ${{ github.event_name == 'release' && github.event.release.tag_name || github.sha }}
1720
steps:
1821
- name: Checkout repository
@@ -30,13 +33,21 @@ jobs:
3033
with:
3134
platforms: linux/amd64,linux/arm64
3235

33-
- name: Log into registry
36+
- name: Log into Azure registry
3437
uses: docker/login-action@v3
3538
with:
3639
registry: "${{ env.AZURE_CONTAINER_REGISTRY }}"
3740
username: "${{ env.ACR_LOGIN_USERNAME }}"
3841
password: "${{ env.ACR_LOGIN_PASSWORD }}"
39-
42+
43+
- name: Log into DEV registry
44+
if: ${{ github.repository == 'code-kern-ai/gates-runtime' }}
45+
uses: docker/login-action@v3
46+
with:
47+
registry: "${{ env.DEV_CONTAINER_REGISTRY }}"
48+
username: "${{ env.DEV_LOGIN_USERNAME }}"
49+
password: "${{ env.DEV_LOGIN_PASSWORD }}"
50+
4051
- name: Build & Push ${{ github.event.repository.name }}:amd64
4152
if: ${{ github.event_name != 'release' }}
4253
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)