From 1d539f8cc94fabc26e4588112ac0c8d430f4aa17 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Thu, 16 Apr 2026 15:27:58 +0200 Subject: [PATCH] Add Docker Hub authentication to CI workflows Authenticate to Docker Hub in jobs that pull images (build-snapshot-docker, test-e2e, build-docker) to avoid unauthenticated rate limits. Signed-off-by: Bryan Frimin --- .github/workflows/make.yaml | 8 ++++++++ .github/workflows/release.yaml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/make.yaml b/.github/workflows/make.yaml index 4ef199079..9afb56a28 100644 --- a/.github/workflows/make.yaml +++ b/.github/workflows/make.yaml @@ -129,6 +129,10 @@ jobs: - uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6 - uses: "runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0" # v2 - uses: "docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd" # v4.0.0 + - uses: "docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2" # v4.0.0 + with: + username: "gearnode" + password: ${{ secrets.DOCKER_HUB_TOKEN }} - uses: "actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c" # v8 with: name: "binary-linux-${{ matrix.arch }}" @@ -369,6 +373,10 @@ jobs: - uses: "runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0" # v2 - uses: "./.github/actions/setup" - uses: "docker/setup-compose-action@8cccb8c14b6500aaffebff1aa49c502c34d2e5e6" # v2.1.0 + - uses: "docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2" # v4.0.0 + with: + username: "gearnode" + password: ${{ secrets.DOCKER_HUB_TOKEN }} - name: "Install mkcert" run: | go install filippo.io/mkcert@latest diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 693af142a..8cc1bd221 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -169,6 +169,10 @@ jobs: - uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6 - uses: "runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0" # v2 - uses: "docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd" # v4.0.0 + - uses: "docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2" # v4.0.0 + with: + username: "gearnode" + password: ${{ secrets.DOCKER_HUB_TOKEN }} - uses: "docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2" # v4.0.0 with: registry: ghcr.io