payment-poc/makefile

22 lines
675 B
Makefile
Raw Normal View History

2023-07-06 11:29:06 +00:00
# scripts for building app
2024-04-01 18:29:24 +00:00
# requires go 1.22+ and git installed
2023-07-06 11:29:06 +00:00
2024-04-01 18:29:24 +00:00
VERSION := $(shell git describe --tags --always)
2023-07-06 11:29:06 +00:00
docker-dev:
2024-04-01 18:29:24 +00:00
docker image build -t registry.bbr-dev.info/payment-poc/backend/dev:latest .
docker image push registry.bbr-dev.info/payment-poc/backend/dev:latest
2023-07-06 11:29:06 +00:00
2024-04-01 18:29:24 +00:00
docker-prod:
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
test:
go test ./...
clean:
2023-07-10 08:10:13 +00:00
rm -rf payment-poc