Skip to content

Commit 35bf5e5

Browse files
author
Ayaz Salikhov
committed
Use docker/login-action instead of manual docker login
1 parent 8bc9e64 commit 35bf5e5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ jobs:
5555
run: make -C main hook-all
5656
- name: Login to Docker Hub
5757
if: github.ref == 'refs/heads/master'
58-
run: >
59-
echo '${{secrets.DOCKERHUB_PASSWORD}}' | docker login --username
60-
'${{secrets.DOCKERHUB_USERNAME}}' --password-stdin
58+
uses: docker/login-action@v1
59+
with:
60+
username: ${{secrets.DOCKERHUB_USERNAME}}
61+
password: ${{secrets.DOCKERHUB_PASSWORD}}
6162
- name: Push Images to DockerHub
6263
if: github.ref == 'refs/heads/master'
6364
run: make -C main push-all

0 commit comments

Comments
 (0)