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 \ .