holiday-api/makefile
Borna Rajković c6f365ab28 v1.0.0
Code reorganization + added meta tags and favicon
2024-02-10 17:49:00 +01:00

34 lines
942 B
Makefile

# scripts for building app
# requires go 1.19+ and git installed
VERSION := 1.0.0
serve:
go run ./...
setup:
go get
docker-dev:
docker image build -t registry.bbr-dev.info/holiday-api/backend:$(VERSION)-dev .
docker tag registry.bbr-dev.info/holiday-api/backend:$(VERSION)-dev registry.bbr-dev.info/holiday-api/backend:latest-dev
docker image push registry.bbr-dev.info/holiday-api/backend:$(VERSION)-dev
docker image push registry.bbr-dev.info/holiday-api/backend:latest-dev
docker-prod:
docker image build -t registry.bbr-dev.info/holiday-api/backend:$(VERSION) .
docker tag registry.bbr-dev.info/holiday-api/backend:$(VERSION) registry.bbr-dev.info/holiday-api/backend:latest
docker image push registry.bbr-dev.info/holiday-api/backend:$(VERSION)
docker image push registry.bbr-dev.info/holiday-api/backend:latest
release:
git tag $(VERSION)
git push origin $(VERSION)
test:
go test ./...
clean:
rm -rf holiday-api