payment-poc/makefile

34 lines
942 B
Makefile
Raw Normal View History

2023-07-06 11:29:06 +00:00
# scripts for building app
# requires go 1.19+ and git installed
VERSION := 0.0.1
serve:
go run ./...
setup:
go get
docker-dev:
2023-07-10 08:10:13 +00:00
docker image build -t registry.bbr-dev.info/payment-poc/backend:$(VERSION)-dev .
docker tag registry.bbr-dev.info/payment-poc/backend:$(VERSION)-dev registry.bbr-dev.info/payment-poc/backend:latest-dev
docker image push registry.bbr-dev.info/payment-poc/backend:$(VERSION)-dev
docker image push registry.bbr-dev.info/payment-poc/backend:latest-dev
2023-07-06 11:29:06 +00:00
docker-prod:
2023-07-10 08:10:13 +00:00
docker image build -t registry.bbr-dev.info/payment-poc/backend:$(VERSION) .
docker tag registry.bbr-dev.info/payment-poc/backend:$(VERSION) registry.bbr-dev.info/payment-poc/backend:latest
docker image push registry.bbr-dev.info/payment-poc/backend:$(VERSION)
docker image push registry.bbr-dev.info/payment-poc/backend:latest
2023-07-06 11:29:06 +00:00
release:
git tag $(VERSION)
git push origin $(VERSION)
test:
go test ./...
clean:
2023-07-10 08:10:13 +00:00
rm -rf payment-poc