mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Use Docker login action (#6567)
Use `docker/login-action` instead of handling Docker login in the Makfile. This fixes special character handling in the Makefile as well as allowing future pushing to other container registries. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
5
.github/workflows/docker.yml
vendored
5
.github/workflows/docker.yml
vendored
@@ -25,5 +25,10 @@ jobs:
|
||||
run: make VERSION=${RELEASE:1} DOCKER=coredns -f Makefile.docker release
|
||||
- name: Show Docker Images
|
||||
run: docker images
|
||||
- name: Docker login
|
||||
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
- name: Publish Docker Images
|
||||
run: make VERSION=${RELEASE:1} DOCKER=coredns -f Makefile.docker docker-push
|
||||
|
||||
Reference in New Issue
Block a user