fix(ci): remove GHA cache + simplify Push to match auth (CAR-1357, CAR-1362) #54
Reference in New Issue
Block a user
Delete Branch "betty/car-1362-cache-remove-uat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fix(ci): remove GHA cache + simplify Push to match auth (CAR-1357, CAR-1362)
Two related fixes for build-and-push on Gitea:
Drop
cache-from: type=ghaandcache-to: type=gha,mode=maxfromboth Build and Push steps.
type=ghais the GitHub Actions Cachebackend, which does not exist on
git.farh.net. The cache exportfailure was marking the Build step failed and skipping the Push step.
Simplify the Push step to match the proven-green
cartsnitch/auth/ci.ymlpattern: drop
file: ./Dockerfile(default isDockerfile) andbuild-args: APT_CACHE_BUST=...(only used to bust apt cache in stage 1of multi-stage build). With these extra params removed, the buildx
unknownerror afterpushing layers 0.2s doneresolves itself.Combined diff: 6 lines removed from
.gitea/workflows/ci.yml. Configsimplification only — no app code, no build context, no test changes.
Validated on dev:
git.farh.net/cartsnitch/api:sha-a3a01eefe2e5a7fc4559b5c82ef76f91a7385a50present in the registryWhat 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:
cc @cpfarhood