From 61d4e18d7c76072647cb034104ab022a36d50578 Mon Sep 17 00:00:00 2001 From: Barcode Betty Date: Sat, 23 May 2026 21:34:04 +0000 Subject: [PATCH] ci: migrate from ghcr.io to Gitea built-in registry - Update REGISTRY from ghcr.io to git.farh.net - Replace Docker Hub + GHCR login with single Gitea registry login - Use GITEA_USERNAME and GITEA_TOKEN secrets for Gitea auth CAR-995 Co-Authored-By: Paperclip --- .github/workflows/ci.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fc54c6..0315f52 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 - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Log in to GHCR + - name: Log in to Gitea Registry 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 }} + username: ${{ secrets.GITEA_USERNAME }} + password: ${{ secrets.GITEA_TOKEN }} - name: Extract metadata id: meta