runner-images/Makefile
张泊明518370910136 a15b34bdea
Some checks failed
push / build (push) Has been cancelled
feat: pack with upx
2024-11-06 18:14:01 -05:00

21 lines
423 B
Makefile

.PHONY: all prepare force-build build push
IMAGE_NAME := focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim
all: build
prepare:
git submodule update --init --remote
$(MAKE) -C JOJ3
cp JOJ3/build/joj3 JOJ3/build/repo-health-checker bin/
upx -9 bin/*
force-build: prepare
docker build --no-cache -t $(IMAGE_NAME) .
build: prepare
docker build -t $(IMAGE_NAME) .
push:
docker push $(IMAGE_NAME)