~dricottone/apkbuilds

ref: 6b6e36a6c9fa6860fd367df75138444f9e827cc9 apkbuilds/Makefile -rw-r--r-- 1.1 KiB
6b6e36a6Dominic Ricottone Updating to alpine v3.20 a month ago
                                                                                
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
REPO=admin-arch4:/tank/data/pkg/alpine/v3.20

ls:
	simple-builder -repository $(REPO)/x86_64
	simple-builder -repository $(REPO)/aarch64

clean:
	rm -rf pkg

pkg:
	mkdir -p pkg/x86_64
	rsync --recursive --update --times --verbose $(REPO)/x86_64 ./pkg/x86_64
	mkdir -p pkg/aarch64
	rsync --recursive --update --times --verbose $(REPO)/aarch64 ./pkg/aarch64

PWD=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
shell:
	docker run --rm --interactive --tty --entrypoint sh \
		--mount type=bind,src=$(PWD)src,dst=/home/builder/src \
		--mount type=bind,src=$(PWD)pkg,dst=/home/builder/packages/src \
		$(MOUNTS) registry.intra.dominic-ricottone.com/apkbuilder:latest

build: pkg
	docker pull --platform linux/amd64 registry.intra.dominic-ricottone.com/apkbuilder:latest
	simple-builder -repository $(REPO)/x86_64 -build
	docker image rm registry.intra.dominic-ricottone.com/apkbuilder:latest
	docker pull --platform linux/arm64 registry.intra.dominic-ricottone.com/apkbuilder:latest
	simple-builder -repository $(REPO)/aarch64 -build
	docker image rm registry.intra.dominic-ricottone.com/apkbuilder:latest

.PHONY: clean ls shell build