Skip to content

Commit

Permalink
Fix makefile
Browse files Browse the repository at this point in the history
with new version docker compose
  • Loading branch information
serodas committed Aug 8, 2024
1 parent ab1c1d9 commit e9ba53d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: make composer-install

- name: 🐳 Start all the environment
run: make start
run: make start-docker

- name: ✅ Run the tests
run: make test
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,17 @@ clean-cache:
@rm -rf apps/*/*/var
@docker exec librarify-php_ddd-backoffice_backend-php ./apps/backoffice/backend/bin/console cache:warmup
@docker exec librarify-php_ddd_backend-php ./apps/librarify/backend/bin/console cache:warmup

# 🐳 docker compose nueva version
start-docker: CMD=up -d
stop-docker: CMD=stop
destroy-docker: CMD=down

start-docker stop-docker destroy-docker: create_env_file
UID=${shell id -u} GID=${shell id -g} docker compose $(CMD)

.PHONY: rebuild-docker
rebuild-docker: create_env_file
make deps
make start-docker
docker compose build --pull --force-rm --no-cache

0 comments on commit e9ba53d

Please sign in to comment.