Skip to content

Commit b8f2df3

Browse files
committed
Skip needless login action for docker registry
1 parent 0ae4ca3 commit b8f2df3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build_multiarch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,14 @@ jobs:
133133
with:
134134
username: ${{ secrets.DOCKER_USER }}
135135
password: ${{ secrets.DOCKER_PASS }}
136+
if: ${{ matrix.registry_name == 'rubylang' }}
136137

137138
- uses: docker/login-action@v3
138139
with:
139140
registry: ghcr.io
140141
username: ${{ secrets.GHCR_USER }}
141142
password: ${{ secrets.GHCR_ACCESS_TOKEN }}
143+
if: ${{ matrix.registry_name == 'ghcr.io/ruby' }}
142144

143145
- name: Create manifest for ${{ matrix.registry_name }}
144146
run: |-

0 commit comments

Comments
 (0)