ci: test before push
Some checks failed
push / build (push) Failing after 3m0s

This commit is contained in:
张泊明518370910136 2024-12-08 11:23:54 -05:00
parent 03242ae60a
commit c085ef6c09
GPG Key ID: CA088E6D9284F870
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,3 @@
---
name: push
on:
push:
@ -37,6 +36,8 @@ jobs:
env:
TZ: Asia/Shanghai
run: ${{ env.build_command }}
- name: Test
run: make test
- name: Check images
run: docker images
- name: Remove dangling images

View File

@ -1,4 +1,4 @@
.PHONY: all prepare force-build build push
.PHONY: all prepare force-build build test push
IMAGE_NAME := focs.ji.sjtu.edu.cn:5000/gitea/runner-images:focs-ubuntu-latest-slim
@ -18,5 +18,8 @@ force-build: prepare
build: prepare
docker build -t $(IMAGE_NAME) .
test:
docker run --rm -it $(IMAGE_NAME) sudo -u tt -E joj3 --help
push:
docker push $(IMAGE_NAME)