Skip to content

Commit 96d934e

Browse files
Quote Docker image name (#452)
This is required to prevent parse errors if multiple image names are specified. Signed-off-by: Mark S. Lewis <[email protected]>
1 parent c2a99c1 commit 96d934e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ jobs:
6262
username: ${{ github.actor }}
6363
password: ${{ secrets.GITHUB_TOKEN }}
6464
- name: Login to Docker Hub
65-
if: ${{ github.repository_owner == 'hyperledger' }}
6665
uses: docker/login-action@v3
6766
with:
6867
registry: docker.io
@@ -76,10 +75,9 @@ jobs:
7675
with:
7776
file: docker/fabric-nodeenv/Dockerfile
7877
context: docker/fabric-nodeenv
79-
outputs: type=registry,name=${{ env.OUTPUT_NAME }},push-by-digest=true,name-canonical=true
78+
outputs: type=registry,"name=${{ format('ghcr.io/{0},docker.io/{0}', env.IMAGE_NAME) }}",push-by-digest=true,name-canonical=true
8079
env:
8180
SOURCE_DATE_EPOCH: ${{ env.SOURCE_DATE_EPOCH }}
82-
OUTPUT_NAME: ${{ github.repository_owner == 'hyperledger' && format('ghcr.io/{0},docker.io/{0}', env.IMAGE_NAME) || format('ghcr.io/{0}', env.IMAGE_NAME) }}
8381
- name: Export digest
8482
run: |
8583
mkdir -p ${{ runner.temp }}/digests
@@ -102,7 +100,9 @@ jobs:
102100
strategy:
103101
fail-fast: false
104102
matrix:
105-
registry: ${{ fromJSON(github.repository_owner == 'hyperledger' && '["docker.io", "ghcr.io"]' || '["ghcr.io"]') }}
103+
registry:
104+
- docker.io
105+
- ghcr.io
106106
steps:
107107
- name: Download digests
108108
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)