diff --git a/.github/workflows/go-docker-image.yml b/.github/workflows/go-docker-image.yml index 70b4a34..82c5999 100644 --- a/.github/workflows/go-docker-image.yml +++ b/.github/workflows/go-docker-image.yml @@ -28,9 +28,10 @@ jobs: run: echo "nowtime=$(TZ=Asia/Shanghai date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: - token: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v2