Skip to content

Commit 4063ff8

Browse files
authored
Merge pull request #1346 from mathbunnyru/asalikhov/use_login_action
Use docker/login-action instead of manual docker login
2 parents 4186d8f + 35bf5e5 commit 4063ff8

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
@@ -62,9 +62,10 @@ jobs:
6262
LOCAL_PATH: ../wiki
6363
- name: Login to Docker Hub
6464
if: github.ref == 'refs/heads/master'
65-
run: >
66-
echo '${{secrets.DOCKERHUB_PASSWORD}}' | docker login --username
67-
'${{secrets.DOCKERHUB_USERNAME}}' --password-stdin
65+
uses: docker/login-action@v1
66+
with:
67+
username: ${{secrets.DOCKERHUB_USERNAME}}
68+
password: ${{secrets.DOCKERHUB_PASSWORD}}
6869
- name: Push Images to DockerHub
6970
if: github.ref == 'refs/heads/master'
7071
run: make -C main push-all

0 commit comments

Comments
 (0)