payment-poc/makefile

34 lines
1002 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
2023-07-31 09:31:20 +00:00
VERSION := 0.1.0
2023-07-06 11:29:06 +00:00
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-26 07:51:29 +00:00
docker image build -t registry.s2internal.com/opgdirekt/payment-poc/backend:$(VERSION) .
docker tag registry.s2internal.com/opgdirekt/payment-poc/backend:$(VERSION) registry.s2internal.com/opgdirekt/payment-poc/backend:latest
docker image push registry.s2internal.com/opgdirekt/payment-poc/backend:$(VERSION)
docker image push registry.s2internal.com/opgdirekt/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