detached ddc3cec

Test release and webhook trigger

commit
ddc3cec773eb74a7929bb86db9a10af2225dcb0a
author
bnema · · 2023-11-02 15:40 UTC
parent
5d02128
signature
unsigned
3 files · +37 -8
M .goreleaser.yaml +33 -5
@@ -1,6 +1,8 @@
11 before:
22 hooks:
33 - go mod tidy
4+ release:
5+ draft: true
46
57 builds:
68 - id: "gordon"
@@ -17,18 +19,44 @@ builds:
1719
1820 dockers:
1921 - image_templates:
20- - "ghcr.io/bnema/gordon:{{ .Tag }}"
21- - "ghcr.io/bnema/gordon:latest"
22+ - "ghcr.io/bnema/gordon:{{ .Tag }}-amd64"
2223 use: buildx
23- skip_push: false
2424 dockerfile: Dockerfile
25+ goarch: amd64
26+ build_flag_templates:
27+ - "--pull"
28+ - "--platform=linux/amd64"
29+ - "--label=org.opencontainers.image.created={{.Date}}"
30+ - "--label=org.opencontainers.image.title={{.ProjectName}}"
31+ - "--label=org.opencontainers.image.revision={{.FullCommit}}"
32+ - "--label=org.opencontainers.image.version={{.Version}}"
33+ - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon"
34+ - image_templates:
35+ - "ghcr.io/bnema/gordon:{{ .Tag }}-arm64"
36+ use: buildx
37+ dockerfile: Dockerfile
38+ goarch: arm64
39+ build_flag_templates:
40+ - "--pull"
41+ - "--platform=linux/arm64"
42+ - "--label=org.opencontainers.image.created={{.Date}}"
43+ - "--label=org.opencontainers.image.title={{.ProjectName}}"
44+ - "--label=org.opencontainers.image.revision={{.FullCommit}}"
45+ - "--label=org.opencontainers.image.version={{.Version}}"
46+ - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon"
47+
48+docker_manifests:
49+ - name_template: "ghcr.io/bnema/gordon:latest"
50+ image_templates:
51+ - "ghcr.io/bnema/gordon:{{ .Tag }}-amd64"
52+ - "ghcr.io/bnema/gordon:{{ .Tag }}-arm64"
53+ create_flags: ["--amend"]
2554
2655 archives:
2756 - format: tar.gz
28- # this name template makes the OS and Arch compatible with the results of `uname`.
2957 name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
3058
31-changelog: # Added this section
59+changelog:
3260 sort: asc
3361 filters:
3462 exclude:
@@ -1,6 +1,8 @@
1 before:1 before:
2 hooks:2 hooks:
3 - go mod tidy3 - go mod tidy
4+ release:
5+ draft: true
4 6
5 builds:7 builds:
6 - id: "gordon"8 - id: "gordon"
@@ -17,18 +19,44 @@ builds:
17 19
18 dockers:20 dockers:
19 - image_templates:21 - image_templates:
20- - "ghcr.io/bnema/gordon:{{ .Tag }}"22+ - "ghcr.io/bnema/gordon:{{ .Tag }}-amd64"
21- - "ghcr.io/bnema/gordon:latest"
22 use: buildx23 use: buildx
23- skip_push: false
24 dockerfile: Dockerfile24 dockerfile: Dockerfile
25+ goarch: amd64
26+ build_flag_templates:
27+ - "--pull"
28+ - "--platform=linux/amd64"
29+ - "--label=org.opencontainers.image.created={{.Date}}"
30+ - "--label=org.opencontainers.image.title={{.ProjectName}}"
31+ - "--label=org.opencontainers.image.revision={{.FullCommit}}"
32+ - "--label=org.opencontainers.image.version={{.Version}}"
33+ - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon"
34+ - image_templates:
35+ - "ghcr.io/bnema/gordon:{{ .Tag }}-arm64"
36+ use: buildx
37+ dockerfile: Dockerfile
38+ goarch: arm64
39+ build_flag_templates:
40+ - "--pull"
41+ - "--platform=linux/arm64"
42+ - "--label=org.opencontainers.image.created={{.Date}}"
43+ - "--label=org.opencontainers.image.title={{.ProjectName}}"
44+ - "--label=org.opencontainers.image.revision={{.FullCommit}}"
45+ - "--label=org.opencontainers.image.version={{.Version}}"
46+ - "--label=org.opencontainers.image.source=https://github.com/bnema/gordon"
47+
48+docker_manifests:
49+ - name_template: "ghcr.io/bnema/gordon:latest"
50+ image_templates:
51+ - "ghcr.io/bnema/gordon:{{ .Tag }}-amd64"
52+ - "ghcr.io/bnema/gordon:{{ .Tag }}-arm64"
53+ create_flags: ["--amend"]
25 54
26 archives:55 archives:
27 - format: tar.gz56 - format: tar.gz
28- # this name template makes the OS and Arch compatible with the results of `uname`.
29 name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"57 name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
30 58
31-changelog: # Added this section59+changelog:
32 sort: asc60 sort: asc
33 filters:61 filters:
34 exclude:62 exclude:
M Dockerfile +1 -3
@@ -6,9 +6,7 @@ RUN mkdir -p /etc/ssl/certs/ && \
66 # Start from scratch
77 FROM scratch
88
9-# Copy CA certificates
10-COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
11-
9+RUN apk --no-cache add ca-certificates
1210 COPY gordon /
1311
1412 EXPOSE 1323
@@ -6,9 +6,7 @@ RUN mkdir -p /etc/ssl/certs/ && \
6 # Start from scratch6 # Start from scratch
7 FROM scratch7 FROM scratch
8 8
9-# Copy CA certificates9+RUN apk --no-cache add ca-certificates
10-COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
11-
12 COPY gordon /10 COPY gordon /
13 11
14 EXPOSE 132312 EXPOSE 1323
M internal/server/sqliteclose.go +3 -0
@@ -16,5 +16,8 @@ func saveDB(a *App) error {
1616
1717 // TODO
1818 func backupDBFile(a *App) error {
19+ // Create a backup of the database file at the same location as the database file.
20+ // The backup file name is the database file name with a timestamp appended to it.
21+ // If the backup file already exists, overwrite it.
1922 return nil
2023 }
@@ -16,5 +16,8 @@ func saveDB(a *App) error {
16 16
17 // TODO17 // TODO
18 func backupDBFile(a *App) error {18 func backupDBFile(a *App) error {
19+ // Create a backup of the database file at the same location as the database file.
20+ // The backup file name is the database file name with a timestamp appended to it.
21+ // If the backup file already exists, overwrite it.
19 return nil22 return nil
20 }23 }

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