workflows: login without specifying registry

This commit is contained in:
Dawid Dziurla 2020-05-11 10:38:38 +02:00
parent 9ecc04fbe4
commit 95c6d3797d
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B
2 changed files with 2 additions and 2 deletions

View File

@ -36,6 +36,6 @@ jobs:
- name: Deploy the tagged Docker image to Docker Hub
if: startsWith(github.ref, 'refs/tags/')
run: |
docker login docker.com -u brewtestbot -p ${{secrets.DOCKER_TOKEN}}
docker login -u brewtestbot -p ${{secrets.DOCKER_TOKEN}}
docker tag brew "homebrew/ubuntu${{matrix.version}}:$brew_version"
docker push "homebrew/ubuntu${{matrix.version}}:$brew_version"

View File

@ -195,6 +195,6 @@ jobs:
docker login docker.pkg.github.com -u BrewTestBot -p ${{secrets.GITHUB_TOKEN}}
docker tag brew "docker.pkg.github.com/homebrew/brew/brew:$v"
docker push "docker.pkg.github.com/homebrew/brew/brew:$v"
docker login docker.com -u brewtestbot -p ${{secrets.DOCKER_TOKEN}}
docker login -u brewtestbot -p ${{secrets.DOCKER_TOKEN}}
docker tag brew "homebrew/brew:$v"
docker push "homebrew/brew:$v"