From 599a9c406039eb2f8fbd1e9c7b86dd259ea2da77 Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Sat, 23 May 2026 15:37:02 +0000 Subject: [PATCH] ci: push Docker images to Gitea registry (git.farh.net) --- .github/workflows/ci.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fc54c6..d4cec21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ permissions: packages: write env: - REGISTRY: ghcr.io + REGISTRY: git.farh.net IMAGE_NAME: cartsnitch/api jobs: @@ -123,19 +123,13 @@ jobs: echo "version=$VERSION" >> "$GITHUB_OUTPUT" echo "CalVer tag: $VERSION" - - name: Log in to Docker Hub + - name: Log in to Gitea Container Registry + if: github.event_name == 'push' uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Log in to GHCR - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + registry: git.farh.net + username: cartsnitch + password: ${{ secrets.GITEA_TOKEN }} - name: Extract metadata id: meta