recipes2/Makefile

21 lines
677 B
Makefile

run:
go run ./cmd/recipes/main.go -config ./config/local.yaml
migrate_create:
migrate create -ext sql -dir ./migrations -seq ${NAME}
migrate_up:
CONFIG_PATH=./config/local.yaml go run ./cmd/migrator/main.go --migrations-path ./migrations
migrate_down:
CONFIG_PATH=./config/local.yaml go run ./cmd/migrator/main.go --migrations-path ./migrations --down
run_parser:
go run ./cmd/parser/main.go -config ./config/local.yaml
lint:
golangci-lint run
generate:
go generate ./...
test:
go test ./internal/...
docker_build:
docker build -t registry.computernetthings.ru/recipes/app . && docker image prune -f
docker_push:
docker push registry.computernetthings.ru/recipes/app