Skip to content

Commit e9ba53d

Browse files
committed
Fix makefile
with new version docker compose
1 parent ab1c1d9 commit e9ba53d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: make composer-install
2121

2222
- name: 🐳 Start all the environment
23-
run: make start
23+
run: make start-docker
2424

2525
- name: ✅ Run the tests
2626
run: make test

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,17 @@ clean-cache:
9797
@rm -rf apps/*/*/var
9898
@docker exec librarify-php_ddd-backoffice_backend-php ./apps/backoffice/backend/bin/console cache:warmup
9999
@docker exec librarify-php_ddd_backend-php ./apps/librarify/backend/bin/console cache:warmup
100+
101+
# 🐳 docker compose nueva version
102+
start-docker: CMD=up -d
103+
stop-docker: CMD=stop
104+
destroy-docker: CMD=down
105+
106+
start-docker stop-docker destroy-docker: create_env_file
107+
UID=${shell id -u} GID=${shell id -g} docker compose $(CMD)
108+
109+
.PHONY: rebuild-docker
110+
rebuild-docker: create_env_file
111+
make deps
112+
make start-docker
113+
docker compose build --pull --force-rm --no-cache

0 commit comments

Comments
 (0)