From 29eb073e954b18c47ce90db3bb0816ea5deed516 Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Tue, 24 Sep 2024 17:59:24 -0700 Subject: [PATCH] ci: login to docker hub --- .github/workflows/publish.yml | 4 ++++ .github/workflows/test.yml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e40df6930..336143537 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,10 @@ jobs: - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 - uses: docker/setup-buildx-action@v3 + - uses: docker/login-action@v3 # helps with rate limit issues + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} - uses: docker/login-action@v3 with: registry: ghcr.io diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6aee77227..3d7c281df 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,6 +39,11 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + - uses: docker/login-action@v3 # helps with rate limit issues + if: matrix.os == 'ubuntu-latest' + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} - name: Configure Windows if: matrix.os == 'windows-latest' run: git config --global core.autocrlf false # fixes go lint fmt error