Skip to content

Commit 99d5e1a

Browse files
authored
Update login condition for Docker action (#87)
* Update login condition for Docker action * Fix condition for Docker login action * Update action.yml with Docker version comment Added a comment regarding Docker version compatibility.
1 parent 9483ce7 commit 99d5e1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,13 @@ runs:
200200

201201
- name: Login
202202
uses: docker/login-action@v3
203-
if: ${{ inputs.login != '' && inputs.password != '' }}
203+
if: ${{ contains(inputs.registry, '.amazonaws.com') || ( inputs.login != '' && inputs.password != '' ) }}
204204
with:
205205
registry: ${{ inputs.registry }}
206206
username: ${{ inputs.login }}
207207
password: ${{ inputs.password }}
208208

209+
209210
- name: Build and push Docker images
210211
# Do not update to >=v6 untill the issue would be solved
211212
# https://github.com/docker/build-push-action/issues/1167

0 commit comments

Comments
 (0)