aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-10-08 03:43:08 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-10-08 03:50:53 +0300
commite849e705c30cceec3cf7336a21bed96c8a911e90 (patch)
tree93f559bcd4cf3e53193930d112e564a2b7462ac8 /Makefile
parent3ee654f6fb3cdf119630bfba8066c96ec26428c3 (diff)
Добавил рейтинг
Добавил страницу топа Добавил rss/xml/json feed
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0ca7344
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+.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