2021-12-05 17:05:00 +00:00
|
|
|
VERSION ?= 3.15
|
2021-11-12 17:28:59 +00:00
|
|
|
RELEASE := v1.21
|
|
|
|
|
|
|
|
.PHONY: builder aports_update
|
|
|
|
|
|
|
|
packages:
|
|
|
|
mkdir -p packages
|
|
|
|
distfiles:
|
|
|
|
mkdir -p distfiles
|
|
|
|
|
|
|
|
aports:
|
2021-12-05 17:05:00 +00:00
|
|
|
git clone git://dev.alpinelinux.org/aports --depth=1
|
2021-11-12 17:28:59 +00:00
|
|
|
aports_update: aports
|
|
|
|
GIT_DIR=aports/.git git fetch origin -p
|
|
|
|
GIT_DIR=aports/.git git pull origin master
|
|
|
|
|
|
|
|
# Mounts release into /work of the builder container to build all
|
|
|
|
build: packages distfiles
|
|
|
|
podman run -ti \
|
|
|
|
-v ${PWD}/distfiles:/var/cache/distfiles \
|
|
|
|
-v ${PWD}/packages:/home/alpine/packages \
|
|
|
|
-v ${HOME}/.gitconfig/:/home/alpine/.gitconfig \
|
|
|
|
-v ${HOME}/.abuild/:/home/alpine/.abuild \
|
|
|
|
-v ${PWD}/$(RELEASE)/:/home/alpine/work \
|
|
|
|
alpine-builder:${VERSION}
|
|
|
|
|
|
|
|
upload:
|
2021-12-05 17:05:00 +00:00
|
|
|
aws s3 cp --recursive packages/work/x86_64/ s3://zero-downtime-web/cdn/alpine/$(RELEASE)/kubezero/x86_64/ --exclude APKINDEX.tar.gz
|
|
|
|
aws s3 cp packages/work/x86_64/APKINDEX.tar.gz s3://zero-downtime-web/cdn/alpine/$(RELEASE)/kubezero/x86_64/ --cache-control max-age=1
|