File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 5454 tags : ${{ steps.meta.outputs.tags }}
5555 labels : ${{ steps.meta.outputs.labels }}
5656 platforms : linux/amd64,linux/arm64
57+ cache-from : type=gha
58+ cache-to : type=gha,mode=max
5759
5860 - name : Generate artifact attestation
5961 uses : actions/attest-build-provenance@main
Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ RUN mkdir /src
33WORKDIR /src
44
55COPY go.mod go.sum* ./
6- RUN go mod download
6+ RUN --mount=type=cache,target=/go/pkg/mod \
7+ go mod download
78COPY . /src/
8- ENV CGO_ENABLED=0
99
10- RUN go build -o ./bin/server
10+ ENV CGO_ENABLED=0
11+ RUN --mount=type=cache,target=/go/pkg/mod \
12+ go build -ldflags="-s -w" -trimpath -o ./bin/server
1113
1214FROM alpine AS runtime
1315LABEL org.opencontainers.image.source="https://github.com/database-playground/sqlrunner-v2"
You can’t perform that action at this time.
0 commit comments