# scripts for building app # requires go 1.22+ and git installed VERSION := $(shell git describe --tags --always) docker-dev: 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 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 test: go test ./... clean: rm -rf payment-poc