# scripts for building app # requires go 1.19+ and git installed VERSION := 0.1.0 serve: go run ./... setup: go get docker-dev: 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 docker-prod: 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 release: git tag $(VERSION) git push origin $(VERSION) test: go test ./... clean: rm -rf payment-poc