From 11ffe9d0e505c716a4cb3e3d10652d92b7a6bfb4 Mon Sep 17 00:00:00 2001 From: perf3ct Date: Tue, 2 Sep 2025 21:21:37 +0000 Subject: [PATCH] feat(ci): add dockerhub auth --- .github/workflows/test-e2e.yml | 9 +++++++++ .github/workflows/test-integration.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 105d2c7..6cf0b7f 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -21,6 +21,9 @@ jobs: services: postgres: image: postgres:17 + credentials: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} env: POSTGRES_USER: readur POSTGRES_PASSWORD: readur @@ -34,6 +37,12 @@ jobs: --health-retries 5 steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Checkout code uses: actions/checkout@v5 diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index 21fc2de..0e8e8b7 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -22,6 +22,9 @@ jobs: services: postgres: image: postgres:17 + credentials: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} env: POSTGRES_USER: readur POSTGRES_PASSWORD: readur @@ -35,6 +38,12 @@ jobs: --health-retries 5 steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Checkout code uses: actions/checkout@v5