Skip to content

Commit 06c93fd

Browse files
Test of multi-registry Docker publish
Signed-off-by: Mark S. Lewis <[email protected]>
1 parent 5b991fe commit 06c93fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ jobs:
8383
username: ${{ github.actor }}
8484
password: ${{ secrets.GITHUB_TOKEN }}
8585
- name: Login to Docker Hub
86-
if: ${{ github.repository_owner == 'hyperledger' }}
8786
uses: docker/login-action@v3
8887
with:
8988
registry: docker.io
@@ -100,7 +99,7 @@ jobs:
10099
outputs: type=registry,name=${{ env.OUTPUT_NAME }},push-by-digest=true,name-canonical=true
101100
env:
102101
SOURCE_DATE_EPOCH: ${{ env.SOURCE_DATE_EPOCH }}
103-
OUTPUT_NAME: ${{ github.repository_owner == 'hyperledger' && format('ghcr.io/{0},docker.io/{0}', env.IMAGE_NAME) || format('ghcr.io/{0}', env.IMAGE_NAME) }}
102+
OUTPUT_NAME: ${{ format('ghcr.io/{0},docker.io/{0}', env.IMAGE_NAME) }}
104103
- name: Export digest
105104
run: |
106105
mkdir -p ${{ runner.temp }}/digests
@@ -123,7 +122,9 @@ jobs:
123122
strategy:
124123
fail-fast: false
125124
matrix:
126-
registry: ${{ fromJSON(github.repository_owner == 'hyperledger' && '["docker.io", "ghcr.io"]' || '["ghcr.io"]') }}
125+
registry:
126+
- docker.io
127+
- ghcr.io
127128
steps:
128129
- name: Download digests
129130
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)