shorgru/Makefile
Alexander Neonxp Kiryukhin e849e705c3
Добавил рейтинг
Добавил страницу топа
Добавил rss/xml/json feed
2024-10-08 03:50:53 +03:00

22 lines
738 B
Makefile

.PHONY: dev-infra-up
dev-infra-up:
docker compose -f ./contrib/dev/docker-compose.yml up -d
.PHONY: dev-infra-stop
dev-infra-stop:
docker compose -f ./contrib/dev/docker-compose.yml stop
.PHONY: dev-infra-down
dev-infra-down:
docker compose -f ./contrib/dev/docker-compose.yml down
.PHONY: generate
generate:
go generate ./...
templ generate
.PHONY: deploy
deploy: generate
docker build -t gitrepo.ru/neonxp/shorg:latest .
docker push gitrepo.ru/neonxp/shorg:latest
docker context use curie
docker compose -f ./contrib/prod/docker-compose.yml --project-name shorg pull app
docker compose -f ./contrib/prod/docker-compose.yml --project-name shorg up --force-recreate --build -d
docker image prune -f
docker context use default