sorarebuddy/Makefile
2024-06-06 09:52:54 +04:00

17 lines
573 B
Makefile

build:
docker build --rm -t registry.lehouerou.net/sorareplus:latest .
push: build
docker push registry.lehouerou.net/sorareplus:latest
deploy: push
ssh srv03 'docker pull registry.lehouerou.net/sorareplus; cd services/sorare; docker compose up -d sorareplus'
dbup:
goose -dir=./db/migrations postgres "host=192.168.1.250 port=5436 user=sorare password=sorare dbname=sorare sslmode=disable" up
dbdown:
goose -dir=./db/migrations postgres "host=192.168.1.250 port=5436 user=sorare password=sorare dbname=sorare sslmode=disable" down
.PHONY: build push deploy dbup