This commit is contained in:
parent
03242ae60a
commit
c085ef6c09
|
@ -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
|
||||
|
|
5
Makefile
5
Makefile
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user