17 lines
573 B
Makefile
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
|