detached a308320

Merge branch 'main' into dev

commit
a3083207d42779cba08b0705586da1c6e87d8970
author
bamen · · 2024-08-29 08:55 UTC
merge of
1e10ad6 + fb536a2 · diff against the first parent
signature
unsigned
2 files · +6 -13
M .goreleaser.yaml +5 -5
@@ -1,3 +1,5 @@
1+version: 2
2+
13 before:
24 hooks:
35 - go mod tidy
@@ -27,13 +29,12 @@ dockers:
2729 build_flag_templates:
2830 - "--pull"
2931 - "--platform=linux/amd64"
32+ - "--build-arg=ARCH=amd64"
3033 - "--label=org.opencontainers.image.created={{.Date}}"
3134 - "--label=org.opencontainers.image.title={{.ProjectName}}"
3235 - "--label=org.opencontainers.image.revision={{.FullCommit}}"
3336 - "--label=org.opencontainers.image.version={{.Version}}"
3437 - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon"
35- extra_files:
36- - .iscontainer
3738 - image_templates:
3839 - "ghcr.io/bnema/gordon:{{ .Tag }}-arm64"
3940 use: buildx
@@ -42,13 +43,12 @@ dockers:
4243 build_flag_templates:
4344 - "--pull"
4445 - "--platform=linux/arm64"
46+ - "--build-arg=ARCH=arm64"
4547 - "--label=org.opencontainers.image.created={{.Date}}"
4648 - "--label=org.opencontainers.image.title={{.ProjectName}}"
4749 - "--label=org.opencontainers.image.revision={{.FullCommit}}"
4850 - "--label=org.opencontainers.image.version={{.Version}}"
4951 - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon"
50- extra_files:
51- - .iscontainer
5252
5353 archives:
5454 - format: zip
@@ -59,4 +59,4 @@ changelog:
5959 filters:
6060 exclude:
6161 - "^docs:"
62- - "^test:"⏎̸
62+ - "^test:"
@@ -1,3 +1,5 @@
1+version: 2
2+
1 before:3 before:
2 hooks:4 hooks:
3 - go mod tidy5 - go mod tidy
@@ -27,13 +29,12 @@ dockers:
27 build_flag_templates:29 build_flag_templates:
28 - "--pull"30 - "--pull"
29 - "--platform=linux/amd64"31 - "--platform=linux/amd64"
32+ - "--build-arg=ARCH=amd64"
30 - "--label=org.opencontainers.image.created={{.Date}}"33 - "--label=org.opencontainers.image.created={{.Date}}"
31 - "--label=org.opencontainers.image.title={{.ProjectName}}"34 - "--label=org.opencontainers.image.title={{.ProjectName}}"
32 - "--label=org.opencontainers.image.revision={{.FullCommit}}"35 - "--label=org.opencontainers.image.revision={{.FullCommit}}"
33 - "--label=org.opencontainers.image.version={{.Version}}"36 - "--label=org.opencontainers.image.version={{.Version}}"
34 - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon"37 - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon"
35- extra_files:
36- - .iscontainer
37 - image_templates:38 - image_templates:
38 - "ghcr.io/bnema/gordon:{{ .Tag }}-arm64"39 - "ghcr.io/bnema/gordon:{{ .Tag }}-arm64"
39 use: buildx40 use: buildx
@@ -42,13 +43,12 @@ dockers:
42 build_flag_templates:43 build_flag_templates:
43 - "--pull"44 - "--pull"
44 - "--platform=linux/arm64"45 - "--platform=linux/arm64"
46+ - "--build-arg=ARCH=arm64"
45 - "--label=org.opencontainers.image.created={{.Date}}"47 - "--label=org.opencontainers.image.created={{.Date}}"
46 - "--label=org.opencontainers.image.title={{.ProjectName}}"48 - "--label=org.opencontainers.image.title={{.ProjectName}}"
47 - "--label=org.opencontainers.image.revision={{.FullCommit}}"49 - "--label=org.opencontainers.image.revision={{.FullCommit}}"
48 - "--label=org.opencontainers.image.version={{.Version}}"50 - "--label=org.opencontainers.image.version={{.Version}}"
49 - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon"51 - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon"
50- extra_files:
51- - .iscontainer
52 52
53 archives:53 archives:
54 - format: zip54 - format: zip
@@ -59,4 +59,4 @@ changelog:
59 filters:59 filters:
60 exclude:60 exclude:
61 - "^docs:"61 - "^docs:"
62- - "^test:"⏎̸62+ - "^test:"
M Dockerfile +1 -8
@@ -1,15 +1,8 @@
1-# Start from scratch
21 FROM alpine:latest
32
4-ARG ARCH
3+COPY gordon /gordon
54
6-# Copy the pre-built binary for the specific architecture
7-COPY dist/gordon-linux-${ARCH} /gordon
8-# Create the .iscontainer file
95 RUN touch /.iscontainer
106
11-# Set the entrypoint
127 ENTRYPOINT ["/gordon"]
13-
14-# Default command
158 CMD ["serve"]
@@ -1,15 +1,8 @@
1-# Start from scratch
2 FROM alpine:latest1 FROM alpine:latest
3 2
4-ARG ARCH3+COPY gordon /gordon
5 4
6-# Copy the pre-built binary for the specific architecture
7-COPY dist/gordon-linux-${ARCH} /gordon
8-# Create the .iscontainer file
9 RUN touch /.iscontainer5 RUN touch /.iscontainer
10 6
11-# Set the entrypoint
12 ENTRYPOINT ["/gordon"]7 ENTRYPOINT ["/gordon"]
13-
14-# Default command
15 CMD ["serve"]8 CMD ["serve"]

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