v0.1.13 516c45b

Makefile RawHistoryFolder

1# This Makefile is used for dev purposes
2# Variables
3REPO := ghcr.io/bnema/gordon
4TAG := dev
5DIST_DIR := ./dist
6ENGINE := podman
7
8# Architectures
9ARCHS := amd64 arm64
10
11# Phony targets
12.PHONY: all build build-push clean
13
14# Default target
15all: build
16
17# Build binaries
18build:
19	@echo "Building Go binaries..."
20	@mkdir -p $(DIST_DIR)
21	@rm -f $(DIST_DIR)/*
22	@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o $(DIST_DIR)/gordon-linux-amd64 ./main.go
23	@CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o $(DIST_DIR)/gordon-linux-arm64 ./main.go
24	@echo "Go binaries built successfully"
25
26# Build and push Docker images
27build-push: build
28	@echo "Cleaning up dangling images..."
29	@$(ENGINE) image prune -f
30
31	@echo "Building and pushing Docker images..."
32	@for arch in $(ARCHS); do \
33		cp $(DIST_DIR)/gordon-linux-$$arch gordon; \
34		$(ENGINE) build -t $(REPO):$(TAG)-$$arch .; \
35		rm gordon; \
36		$(ENGINE) push $(REPO):$(TAG)-$$arch; \
37	done
38
39	@echo "Removing existing manifest..."
40	@$(ENGINE) manifest rm $(REPO):$(TAG) || true
41
42	@echo "Creating multi-arch manifest..."
43	@$(ENGINE) manifest create $(REPO):$(TAG) \
44		$(REPO):$(TAG)-amd64 \
45		$(REPO):$(TAG)-arm64
46
47	@echo "Annotating arm64 image..."
48	@$(ENGINE) manifest annotate $(REPO):$(TAG) \
49		$(REPO):$(TAG)-arm64 --arch arm64 --variant v8
50
51	@echo "Inspecting manifest..."
52	@$(ENGINE) manifest inspect $(REPO):$(TAG)
53
54	@echo "Pushing multi-arch manifest..."
55	@$(ENGINE) manifest push --all $(REPO):$(TAG)
56
57	@echo "Script completed successfully."
58
59# Clean up
60clean:
61	@echo "Cleaning up..."
62	@rm -rf $(DIST_DIR)
63	@$(ENGINE) system prune -f
64	@echo "Cleanup completed."

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