Skip to content

Commit

Permalink
Fix broken docker login action (vmware-tanzu#3121)
Browse files Browse the repository at this point in the history
PR vmware-tanzu#3110 introduced a new action for performing the login to Dockerhub
as part of image building and pushing however there is an error with the
configuration and the credentials are not being passed through
correctly. This change reverts to the previous log in approach.

Signed-off-by: Bridget McErlean <[email protected]>
  • Loading branch information
zubron authored Nov 30, 2020
1 parent c7531ad commit ad31e6e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,8 @@ jobs:
run: make test

# Only try to publish the container image from the root repo; forks don't have permission to do so and will always get failures.
- name: Login to DockerHub
if: github.repository == 'vmware-tanzu/velero'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Publish container image
if: github.repository == 'vmware-tanzu/velero'
run: ./hack/docker-push.sh
run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
./hack/docker-push.sh

0 comments on commit ad31e6e

Please sign in to comment.