v2.31.1 f37fe67

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
9FROM --platform=$BUILDPLATFORM golang:1.27-alpine3.22 AS builder
10
11ARG TARGETOS=linux
12ARG TARGETARCH=amd64
13ARG VERSION
14ARG COMMIT
15ARG BUILD_DATE
16
17RUN apk add --no-cache git ca-certificates tzdata
18
19WORKDIR /app
20
21COPY go.mod go.sum ./
22RUN go mod download
23
24COPY . .
25
26RUN CGO_ENABLED=0 GOOS="${TARGETOS}" GOARCH="${TARGETARCH}" go build \
27    -trimpath \
28    -ldflags="-s -w -X main.version=${VERSION} -X main.commit=${COMMIT} -X main.date=${BUILD_DATE}" \
29    -o /gordon ./main.go
30
31FROM alpine:3.22
32
33ARG VERSION
34ARG COMMIT
35ARG BUILD_DATE
36
37RUN apk add --no-cache \
38    ca-certificates \
39    docker-cli \
40    curl \
41    wget \
42    tzdata \
43    && rm -rf /var/cache/apk/*
44
45RUN adduser -D -s /bin/sh gordon
46
47WORKDIR /app
48
49COPY --from=builder /gordon ./gordon
50
51RUN mkdir -p /data && chown gordon:gordon /data
52COPY --chown=gordon:gordon gordon.toml.example /app/gordon.toml.example
53
54USER gordon
55
56EXPOSE 8088 5000
57
58# Admin health is served on the registry/admin listener and is gated by auth in
59# normal deployments, so this image does not declare a Docker healthcheck.
60CMD ["./gordon", "serve"]
61
62LABEL org.opencontainers.image.title="Gordon"
63LABEL org.opencontainers.image.description="Event-driven container deployment platform"
64LABEL org.opencontainers.image.source="https://github.com/bnema/gordon"
65LABEL org.opencontainers.image.version="${VERSION}"
66LABEL org.opencontainers.image.revision="${COMMIT}"
67LABEL 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