chore(github-workflow): add build and publish docker image workflow

This commit is contained in:
Vadim Aleksandrov
2024-07-15 16:28:47 +03:00
parent ce6189685a
commit 9a83963cfb
2 changed files with 54 additions and 0 deletions

17
app/Makefile Normal file
View 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)