Skip to content

Commit 8f3d524

Browse files
authored
cd: publish stable images to azure container registry (#145)
* Update publish.yml * Update publish.yml
1 parent 361ba8f commit 8f3d524

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,27 @@ jobs:
155155
steps:
156156
- uses: actions/checkout@v4
157157

158-
- name: Log in to the Container registry
158+
- name: Log in to GHCR
159159
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
160160
with:
161161
registry: ghcr.io
162162
username: ${{ secrets.GHCR_USER }}
163163
password: ${{ secrets.PACKAGE_SCOPE }}
164164

165+
- name: Log in to ACR
166+
uses: azure/docker-login@v1
167+
with:
168+
login-server: ${{ secrets.ACR_AZUREHOUND_REGISTRY_URL }}
169+
username: ${{ secrets.ACR_CLIENT_ID }}
170+
password: ${{ secrets.ACR_SECRET }}
171+
165172
- name: Extract metadata
166173
id: meta
167174
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
168175
with:
169-
images: ghcr.io/bloodhoundad/azurehound
176+
images: |
177+
ghcr.io/bloodhoundad/azurehound
178+
${{ secrets.ACR_AZUREHOUND_REGISTRY_URL }}/azurehound
170179
tags: |
171180
type=semver,pattern={{version}},prefix=v
172181
type=semver,pattern={{major}}.{{minor}},prefix=v

0 commit comments

Comments
 (0)