db9efb582eb4ecd66288006d8cfcc21ea8230645

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Switch to target scoped doker caching

Diff

 1diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
 2index 51e1e68cd1f5510b2e81c8627e2a82e47db63741..acc2ab1716cfe82f9b0173e363cc61fc89237133 100644
 3--- a/.github/workflows/ci.yaml
 4+++ b/.github/workflows/ci.yaml
 5@@ -64,8 +64,8 @@ jobs:
 6           push: true
 7           tags: theedgeofrage/ytrssil:api
 8           target: api
 9-          cache-from: type=gha
10-          cache-to: type=gha,mode=max
11+          cache-from: type=gha,scope=api
12+          cache-to: type=gha,scope=api,mode=max
13 
14       - name: Build and push migrations image
15         uses: docker/build-push-action@v7
16@@ -73,5 +73,5 @@ jobs:
17           push: true
18           tags: theedgeofrage/ytrssil:migrations
19           target: migrations
20-          cache-from: type=gha
21-          cache-to: type=gha,mode=max
22+          cache-from: type=gha,scope=migrations
23+          cache-to: type=gha,scope=migrations,mode=max
24diff --git a/Dockerfile b/Dockerfile
25index 687636a4ef337c885d982b3b4fbafae30f73cd1e..676ba6f6a86234b7b1cb579d094c04acb8384cfc 100644
26--- a/Dockerfile
27+++ b/Dockerfile
28@@ -1,4 +1,4 @@
29-FROM golang:1.25-trixie@sha256:84ad9c55a9914b5861e04c6391151c2bb8931f4115acc9ab7658b01cc85e2854 AS builder
30+FROM golang:1.25-trixie AS builder
31 
32 WORKDIR /app/
33 ENV GOCACHE="/cache"
34@@ -10,7 +10,7 @@ RUN --mount=type=cache,target="/cache" go mod download;
35 COPY . /app/
36 RUN --mount=type=cache,target="/cache" go build -o dist/ytrssil-api cmd/main.go;
37 
38-FROM debian:trixie-slim@sha256:26f98ccd92fd0a44d6928ce8ff8f4921b4d2f535bfa07555ee5d18f61429cf0c AS api
39+FROM debian:trixie-slim AS api
40 
41 HEALTHCHECK --start-period=2s --start-interval=2s CMD exec curl -sf localhost:$PORT/healthz;
42 WORKDIR /app/