chore(github-workflow): add build and publish docker image workflow
This commit is contained in:
17
app/Makefile
Normal file
17
app/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
.PHONY: start build publish
|
||||
|
||||
export GOBIN=${CURDIR}/bin
|
||||
|
||||
version ?= master
|
||||
|
||||
$(GOBIN)/air:
|
||||
go install github.com/air-verse/air@latest
|
||||
|
||||
start: $(GOBIN)/air
|
||||
air
|
||||
|
||||
build:
|
||||
docker build . --tag quay.csssr.cloud/csssr/test-app:$(version)
|
||||
|
||||
publish:
|
||||
docker push quay.csssr.cloud/csssr/test-app:$(version)
|
Reference in New Issue
Block a user