v3.3.0 b164fe9

Dockerfile RawHistoryFolder

1# Gordon v2 production image.
2# Build with BuildKit or Podman to select TARGETOS and TARGETARCH.
3
4ARG BUILDPLATFORM
5ARG VERSION=dev
6ARG COMMIT=unknown
7ARG BUILD_DATE=unknown
8# Whether the source checkout had uncommitted changes. The Makefile and the
9# release tooling pass an explicit true/false value. Because .git is excluded
10# from the build context (see .dockerignore), an ad-hoc build that passes no
11# build-arg reports "unknown" rather than falsely claiming a clean checkout.
12ARG DIRTY=unknown
13
14FROM --platform=$BUILDPLATFORM golang:1.27-alpine3.23 AS builder
15
16ARG TARGETOS=linux
17ARG TARGETARCH=amd64
18ARG VERSION
19ARG COMMIT
20ARG BUILD_DATE
21ARG DIRTY
22
23RUN apk add --no-cache git ca-certificates tzdata
24
25WORKDIR /app
26
27COPY go.mod go.sum ./
28RUN go mod download
29
30COPY . .
31
32RUN CGO_ENABLED=0 GOOS="${TARGETOS}" GOARCH="${TARGETARCH}" go build \
33    -trimpath \
34    -ldflags="-s -w -X main.version=${VERSION} -X main.commit=${COMMIT} -X main.date=${BUILD_DATE} -X main.dirty=${DIRTY}" \
35    -o /gordon ./main.go
36
37FROM alpine:3.22
38
39ARG VERSION
40ARG COMMIT
41ARG BUILD_DATE
42
43RUN apk add --no-cache \
44    ca-certificates \
45    docker-cli \
46    curl \
47    wget \
48    tzdata \
49    && rm -rf /var/cache/apk/*
50
51RUN adduser -D -s /bin/sh gordon
52
53WORKDIR /app
54
55COPY --from=builder /gordon ./gordon
56
57RUN mkdir -p /data && chown gordon:gordon /data
58COPY --chown=gordon:gordon gordon.toml.example /app/gordon.toml.example
59
60USER gordon
61
62EXPOSE 8088 5000
63
64# Admin health is served on the registry/admin listener and is gated by auth in
65# normal deployments, so this image does not declare a Docker healthcheck.
66CMD ["./gordon", "serve"]
67
68LABEL org.opencontainers.image.title="Gordon"
69LABEL org.opencontainers.image.description="Event-driven container deployment platform"
70LABEL org.opencontainers.image.source="https://github.com/bnema/gordon"
71LABEL org.opencontainers.image.version="${VERSION}"
72LABEL org.opencontainers.image.revision="${COMMIT}"
73LABEL org.opencontainers.image.created="${BUILD_DATE}"

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close