runner-images/Makefile
张泊明518370910136 c6ce4dab7d
All checks were successful
push / build (push) Successful in 3m58s
chore: use goproxy.cn
2026-04-26 21:53:27 -07:00

27 lines
598 B
Makefile

.PHONY: all prepare force-build build test push
IMAGE_NAME := focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim
all: build
prepare:
git submodule update --init --remote
go env -w GOPROXY=https://goproxy.cn,direct
$(MAKE) -C JOJ3
cp JOJ3/build/joj3 JOJ3/build/repo-health-checker bin/
ls -lha bin
# upx --best bin/joj3 bin/repo-health-checker
# ls -lha bin
force-build: prepare
docker build --no-cache -t $(IMAGE_NAME) .
build: prepare
docker build -t $(IMAGE_NAME) .
test:
docker run --rm $(IMAGE_NAME) sudo -u tt -E joj3 --help
push:
docker push $(IMAGE_NAME)