From 1895ed4212704384b03a68aa9d89494fe4b286aa Mon Sep 17 00:00:00 2001 From: Sergey Bogatyrets Date: Sat, 21 Mar 2020 00:19:22 +0300 Subject: [PATCH] Dockerhub login --- .github/workflows/master.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 0cb099a..89e10b8 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -1,7 +1,5 @@ name: "Master release" env: - DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} - DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} DOCKERHUB_REPOSITORY: serjs/go-socks5-proxy on: @@ -17,9 +15,6 @@ jobs: - name: Checkout uses: actions/checkout@v1 - - - name: Thisdir - run: ls -la - name: Set up Docker Buildx id: buildx @@ -27,6 +22,12 @@ jobs: - name: Print builder available platforms run: echo ${{ steps.buildx.outputs.platforms }} + - + name: Dockerhub login + uses: azure/docker-login@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} - name: Run Buildx run: | @@ -34,5 +35,5 @@ jobs: --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 \ --output "type=image,push=false" \ --push \ - --tag latest \ + --tag $DOCKERHUB_REPOSITORY/latest \ .