generated from Start9Labs/hello-world-startos
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
28 lines (20 loc) · 873 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
ASSETS := $(shell yq e '.assets.[].src' manifest.yaml)
VERSION := $(shell yq e ".version" manifest.yaml)
S9PK_PATH=$(shell find . -name gitea.s9pk -print)
TS_FILES := $(shell find . -name \*.ts )
# delete the target of a rule if it has changed and its recipe exits with a nonzero exit status
.DELETE_ON_ERROR:
all: verify
install: gitea.s9pk
embassy-cli package install gitea.s9pk
verify: gitea.s9pk $(S9PK_PATH)
embassy-sdk verify s9pk $(S9PK_PATH)
clean:
rm -f image.tar
rm -f gitea.s9pk
gitea.s9pk: manifest.yaml image.tar instructions.md scripts/embassy.js
embassy-sdk pack
image.tar: Dockerfile docker_entrypoint.sh check-web.sh
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --tag start9/gitea/main:$(VERSION) --platform=linux/arm64 -o type=docker,dest=image.tar .
scripts/embassy.js: $(TS_FILES)
deno bundle scripts/embassy.ts scripts/embassy.js