File tree Expand file tree Collapse file tree 3 files changed +10
-62
lines changed
Expand file tree Collapse file tree 3 files changed +10
-62
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- FROM --platform=$TARGETARCH ghcr.io/planetscale/ghcommit:v0.1.74 AS ghcommit
1+ FROM golang:1.25-alpine3.22
22
3- # hadolint ignore=DL3007
4- FROM --platform=$TARGETARCH pscale.dev/wolfi-prod/base:latest AS base
5-
6- COPY --from=ghcommit /ghcommit /usr/bin/ghcommit
3+ ARG GHCOMMIT_VERSION=v0.1.75
74
85# hadolint ignore=DL3018
9- RUN apk add --no-cache \
10- bash \
11- git-crypt \
12- curl \
13- git
6+ RUN apk add --no-cache bash git-crypt curl git
7+
8+ # Download and build ghcommit from source
9+ RUN git clone --depth 1 --branch "${GHCOMMIT_VERSION}" https://github.com/planetscale/ghcommit.git /ghcommit
10+ WORKDIR /ghcommit
11+ RUN go mod download
12+ RUN CGO_ENABLED=0 go build -o /usr/bin/ghcommit .
1413
1514COPY entrypoint.sh /entrypoint.sh
15+ RUN chmod +x /entrypoint.sh /usr/bin/ghcommit
1616
1717ENTRYPOINT ["/entrypoint.sh" ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments