-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (31 loc) · 909 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
IMAGE_NAME = codeberg.org/drunkontee/despot
IMAGE_TAG = dev
BUILD_ARGS =
PLATFORMS = linux/amd64,linux/arm64/v8
.PHONY: build
build:
docker buildx build \
--pull \
$(BUILD_ARGS) \
--provenance=false \
--sbom=false \
--tag $(IMAGE_NAME):$(IMAGE_TAG) .
.PHONY: .buildx-builder
.buildx-builder:
docker buildx create \
--name crossplatform \
--node crossplatform0 \
--platform $(PLATFORMS) || true
.PHONY: build-push
build-push: .buildx-builder
@$(MAKE) build BUILD_ARGS='$(BUILD_ARGS) --push --builder crossplatform --platform $(PLATFORMS)'
.PHONY: rich-codex
rich-codex:
rm -rf .assets/.created.txt .assets/.deleted.txt
FORCE_COLOR=1 TERMINAL_WIDTH=140 rich-codex \
--skip-git-checks \
--no-confirm \
--terminal-theme DIMMED_MONOKAI \
--created-files .assets/.created.txt \
--deleted-files .assets/.deleted.txt
if [[ -f .assets/.created.txt || -f .assets/.deleted.txt ]]; then exit 1; fi