fix(ci): remove GHA cache + simplify Push to match auth (CAR-1357, CAR-1362) #54

Merged
Barcode Betty merged 1 commits from betty/car-1362-cache-remove-uat into uat 2026-06-10 04:19:05 +00:00
Member

fix(ci): remove GHA cache + simplify Push to match auth (CAR-1357, CAR-1362)

Two related fixes for build-and-push on Gitea:

  1. Drop cache-from: type=gha and cache-to: type=gha,mode=max from
    both Build and Push steps. type=gha is the GitHub Actions Cache
    backend, which does not exist on git.farh.net. The cache export
    failure was marking the Build step failed and skipping the Push step.

  2. Simplify the Push step to match the proven-green cartsnitch/auth/ci.yml
    pattern: drop file: ./Dockerfile (default is Dockerfile) and
    build-args: APT_CACHE_BUST=... (only used to bust apt cache in stage 1
    of multi-stage build). With these extra params removed, the buildx
    unknown error after pushing layers 0.2s done resolves itself.

Combined diff: 6 lines removed from .gitea/workflows/ci.yml. Config
simplification only — no app code, no build context, no test changes.

Validated on dev:

  • PR #52 (cache removal) + PR #53 (Push simplification) merged
  • Run 3458 build-and-push success
  • Image git.farh.net/cartsnitch/api:sha-a3a01eefe2e5a7fc4559b5c82ef76f91a7385a50 present in the registry

What this PR does: Parity with the now-green dev branch. Same diff
combined into a single commit for the dev → uat promotion (matches the
CAR-1356 parity pattern from PR #49).

Refs:

  • CAR-1362 (cache removal + push simplification)
  • CAR-1356 (REGISTRY_TOKEN prerequisite, merged)
  • CAR-1357 (this PR's identifier per spec parity)
  • CAR-1330 (parent dev→uat promotion)

cc @cpfarhood

fix(ci): remove GHA cache + simplify Push to match auth (CAR-1357, CAR-1362) Two related fixes for build-and-push on Gitea: 1. **Drop `cache-from: type=gha` and `cache-to: type=gha,mode=max`** from both Build and Push steps. `type=gha` is the GitHub Actions Cache backend, which does not exist on `git.farh.net`. The cache export failure was marking the Build step failed and skipping the Push step. 2. **Simplify the Push step to match the proven-green `cartsnitch/auth/ci.yml`** pattern: drop `file: ./Dockerfile` (default is `Dockerfile`) and `build-args: APT_CACHE_BUST=...` (only used to bust apt cache in stage 1 of multi-stage build). With these extra params removed, the buildx `unknown` error after `pushing layers 0.2s done` resolves itself. **Combined diff:** 6 lines removed from `.gitea/workflows/ci.yml`. Config simplification only — no app code, no build context, no test changes. **Validated on dev:** - PR #52 (cache removal) + PR #53 (Push simplification) merged - Run [3458](https://git.farh.net/cartsnitch/api/actions/runs/3458) build-and-push success - Image `git.farh.net/cartsnitch/api:sha-a3a01eefe2e5a7fc4559b5c82ef76f91a7385a50` present in the registry **What this PR does:** Parity with the now-green dev branch. Same diff combined into a single commit for the dev → uat promotion (matches the CAR-1356 parity pattern from PR #49). Refs: - [CAR-1362](/CAR/issues/CAR-1362) (cache removal + push simplification) - [CAR-1356](/CAR/issues/CAR-1356) (REGISTRY_TOKEN prerequisite, merged) - [CAR-1357](/CAR/issues/CAR-1357) (this PR's identifier per spec parity) - [CAR-1330](/CAR/issues/CAR-1330) (parent dev→uat promotion) cc @cpfarhood
Barcode Betty added 1 commit 2026-06-10 04:16:48 +00:00
fix(ci): remove GHA cache + simplify Push to match auth (CAR-1357, CAR-1362)
CI / lint (pull_request) Successful in 6s
CI / typecheck (pull_request) Successful in 20s
CI / test (pull_request) Successful in 26s
CI / build-and-push (pull_request) Has been skipped
96ae9314bf
Two related fixes for build-and-push on Gitea:

1. Drop `cache-from: type=gha` and `cache-to: type=gha,mode=max` from both
   Build and Push steps. `type=gha` is the GitHub Actions Cache backend,
   which does not exist on git.farh.net. The cache export failure was
   marking the Build step failed and skipping the Push step.

2. Simplify the Push step to match the proven-green `cartsnitch/auth/ci.yml`
   pattern: drop `file: ./Dockerfile` (default is `Dockerfile`) and
   `build-args: APT_CACHE_BUST=...` (only used to bust apt cache in stage 1
   of multi-stage build). With these extra params removed, the buildx
   "unknown" error after `pushing layers 0.2s done` resolves itself.

Combined diff: 6 lines removed from .gitea/workflows/ci.yml. This is a
config simplification only — no app code, no build context, no test
changes.

Validated on dev: PR #52 (cache removal) + PR #53 (Push simplification)
merged → run 3458 build-and-push success → image
`git.farh.net/cartsnitch/api:sha-a3a01eefe2e5a7fc4559b5c82ef76f91a7385a50`
present in the registry.

Refs: CAR-1362, CAR-1356, CAR-1330, CAR-1357.

Co-authored-by: Paperclip <noreply@paperclip.ing>
Barcode Betty merged commit 9e2e2ece0c into uat 2026-06-10 04:19:05 +00:00
Sign in to join this conversation.