From 505fb393f453bdc0a1150d470c6be3a4adaf0c92 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Mon, 30 Sep 2024 05:39:07 -0400 Subject: [PATCH] feat: force build --- .gitea/workflows/push.yaml | 4 ++-- Makefile | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index 006680e..7f6b235 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -28,8 +28,8 @@ jobs: go env -w GOPROXY=https://goproxy.io,direct chown -R root:root /root/.ssh - name: Build - run: make build + run: make force-build - name: Check images - run: docker ps -a + run: docker images - name: Push run: make push diff --git a/Makefile b/Makefile index 0ecc856..dbabbdb 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,16 @@ -.PHONY: all build push +.PHONY: all prepare force-build build push all: build -build: +prepare: git submodule update --init --remote $(MAKE) -C JOJ3 cp JOJ3/build/joj3 bin/ + +force-build: prepare + docker build --no-cache -t focs.ji.sjtu.educn:5000/gitea/runner-images:focs-ubuntu-latest-slim . + +build: prepare docker build -t focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim . push: