From 0ec104c6b1b15dc984bad63c2ae525364624b007 Mon Sep 17 00:00:00 2001 From: feng-tao Date: Tue, 18 Aug 2020 13:11:13 -0700 Subject: [PATCH] chore: fix docker push action Signed-off-by: feng-tao --- .github/workflows/pypipublish.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pypipublish.yml b/.github/workflows/pypipublish.yml index 88f20c16..158324a4 100644 --- a/.github/workflows/pypipublish.yml +++ b/.github/workflows/pypipublish.yml @@ -32,11 +32,9 @@ jobs: runs-on: ubuntu-18.04 steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 + - name: Login with docker + run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - name: Publish to Registry - uses: elgohr/Publish-Docker-Github-Action@2.8 - with: - name: amundsen-io/amundsensearchlibrary - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - tag_names: true + if: success() + run: make build-push-image