Skip to content

Commit e1349bd

Browse files
committed
Calculate compose project name instead of hardcoding it
1 parent 10516d9 commit e1349bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
BINDIR = $(PWD)/.state/env/bin
2+
COMPOSE_PROJECT_NAME ?= $(notdir $(abspath .))
23
GITHUB_ACTIONS := $(shell echo "$${GITHUB_ACTIONS:-false}")
34
GITHUB_BASE_REF := $(shell echo "$${GITHUB_BASE_REF:-false}")
45
DB := example
@@ -155,7 +156,7 @@ endif
155156

156157
resetdb:
157158
docker-compose rm --stop --force db
158-
docker volume rm warehouse_pgdata
159+
docker volume rm $(COMPOSE_PROJECT_NAME)_pgdata
159160
docker-compose up -d db
160161

161162
initdb:

0 commit comments

Comments
 (0)