From eca23fe515bb59bc3ad78e29a1f990fac0b50d9a Mon Sep 17 00:00:00 2001 From: Chris Farhood <3+cpfarhood@noreply.git.farh.net> Date: Mon, 25 May 2026 21:45:18 +0000 Subject: [PATCH 1/3] Add .mcp.json --- .mcp.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .mcp.json diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 0000000..6efc1ca --- /dev/null +++ b/.mcp.json @@ -0,0 +1,11 @@ +{ + "mcpServers": { + "gitea": { + "type": "http", + "url": "https://git-mcp.farh.net/mcp", + "headers": { + "Authorization": "Bearer ${GITEA_TOKEN}" + } + } + } +} From e308b15255742799573592d9ede6cc416975b75e Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Thu, 28 May 2026 19:47:39 +0000 Subject: [PATCH 2/3] ci(CAR-1041): remove invalid deploy-dev/deploy-uat jobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove deploy-dev and deploy-uat CI jobs. CartSnitch uses Flux GitOps — CI builds images, Flux deploys. These Actions-based deployment jobs were added incorrectly in CAR-987. Co-Authored-By: Barcode Betty --- .gitea/workflows/ci.yml | 78 ----------------------------------------- 1 file changed, 78 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 1c86e8c..afdaa08 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -72,81 +72,3 @@ jobs: run: | git tag "v${{ steps.calver.outputs.version }}" git push origin "v${{ steps.calver.outputs.version }}" - - deploy-dev: - runs-on: ubuntu-latest - needs: [build-and-push] - if: github.event_name == 'push' && (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') - steps: - - uses: actions/checkout@v4 - with: - repository: cartsnitch/infra - token: ${{ secrets.GITEA_TOKEN }} - ref: main - path: infra - - - uses: imranismail/setup-kustomize@v2 - - - name: Determine image tag - id: tag - run: | - if [ "${{ github.ref }}" == "refs/heads/main" ]; then - echo "tag=${{ needs.build-and-push.outputs.calver_tag }}" >> "$GITHUB_OUTPUT" - else - echo "tag=${{ needs.build-and-push.outputs.sha_tag }}" >> "$GITHUB_OUTPUT" - fi - - - name: Update auth image tag in dev overlay - run: | - cd infra/apps/overlays/dev - kustomize edit set image ghcr.io/cartsnitch/auth=git.farh.net/cartsnitch/auth:${{ steps.tag.outputs.tag }} - - - name: Commit and push to infra - run: | - cd infra - git config user.name "cartsnitch-ci[bot]" - git config user.email "cartsnitch-ci[bot]@users.noreply.github.com" - git add apps/overlays/dev/kustomization.yaml - git diff --cached --quiet && echo "No changes" && exit 0 - git commit -m "ci(dev): update auth image from cartsnitch/auth CI" - git pull --rebase origin main - git push origin main - - deploy-uat: - runs-on: ubuntu-latest - needs: [build-and-push] - if: github.event_name == 'push' && (github.ref == 'refs/heads/uat' || github.ref == 'refs/heads/main') - steps: - - uses: actions/checkout@v4 - with: - repository: cartsnitch/infra - token: ${{ secrets.GITEA_TOKEN }} - ref: main - path: infra - - - uses: imranismail/setup-kustomize@v2 - - - name: Determine image tag - id: tag - run: | - if [ "${{ github.ref }}" == "refs/heads/main" ]; then - echo "tag=${{ needs.build-and-push.outputs.calver_tag }}" >> "$GITHUB_OUTPUT" - else - echo "tag=${{ needs.build-and-push.outputs.sha_tag }}" >> "$GITHUB_OUTPUT" - fi - - - name: Update auth image tag in uat overlay - run: | - cd infra/apps/overlays/uat - kustomize edit set image ghcr.io/cartsnitch/auth=git.farh.net/cartsnitch/auth:${{ steps.tag.outputs.tag }} - - - name: Commit and push to infra - run: | - cd infra - git config user.name "cartsnitch-ci[bot]" - git config user.email "cartsnitch-ci[bot]@users.noreply.github.com" - git add apps/overlays/uat/kustomization.yaml - git diff --cached --quiet && echo "No changes" && exit 0 - git commit -m "ci(uat): update auth image from cartsnitch/auth CI" - git pull --rebase origin main - git push origin main From b4420b3f8794b8126e5d99a47e29af249a85b2e2 Mon Sep 17 00:00:00 2001 From: Barcode Betty Date: Tue, 2 Jun 2026 14:16:15 +0000 Subject: [PATCH 3/3] fix(ci): use direct docker login for Gitea registry (CAR-994) docker/login-action@v3 exits 1 against git.farh.net. Replace with a direct docker login shell command using secrets.REGISTRY_TOKEN via --password-stdin. cc @cpfarhood --- .gitea/workflows/ci.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f115862..04f89a8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -43,11 +43,7 @@ jobs: echo "version=$VERSION" >> "$GITHUB_OUTPUT" - name: Log in to Gitea Container Registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.REGISTRY_TOKEN }} + run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ env.REGISTRY }} -u "${{ github.actor }}" --password-stdin - name: Extract metadata id: meta