ci: add docker build

This commit is contained in:
徐志强
2022-09-13 14:56:59 +02:00
parent d823ee5684
commit af74046124
5 changed files with 134 additions and 0 deletions

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
ImageTag ?=v0.9.6
SoybeanImg ?= soybean/soybean:$(ImageTag)
VERSION=$(shell git rev-parse --short HEAD)
soybean: soybean-build soybean-push
soybean-build:
docker build --build-arg version=$(VERSION) -t ${SoybeanImg} -f build/docker/Dockerfile .
soybean-push:
docker push ${SoybeanImg}