From eaa4894de50fc9468f909c84ac14a70041efe962 Mon Sep 17 00:00:00 2001 From: pi-farm Date: Fri, 13 Feb 2026 01:54:32 +0100 Subject: [PATCH] add login to dockerhub with secret token --- .gitea/workflows/build-and-push.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index 2a1dfad..07c4d37 100644 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -18,11 +18,6 @@ jobs: with: fetch-depth: 0 - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Prepare Environment and Read Config id: prep run: | @@ -119,6 +114,12 @@ jobs: - name: Set up Docker Buildx if: steps.check_changes.outputs.should_build == 'true' uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: https://github.com/docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and Push Docker Image if: steps.check_changes.outputs.should_build == 'true'