Skip to content

Commit

Permalink
build: fix clean-* tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
frugan-dev committed Jun 18, 2024
1 parent b1a7ea2 commit 54f8b87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,7 @@ jobs:

- name: Run Makefile 'down' task
run: make down

- name: Remove Docker volumes
run: |
docker volume rm mariadb_data wordpress_data mailpit_data || true
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ clean-node:

clean-wordpress:
@echo "[wordpress] Cleaning artifacts"
@rm -rf $(PLUGIN_NAME)/.git $(PLUGIN_NAME)/vendor $(PLUGIN_NAME)/composer.lock $(DIST_DIR)/*
@find $(PLUGIN_NAME)/symlink -mindepth 1 -maxdepth 1 -type d | xargs rm -rf
@$(DOCKER_COMPOSE) exec -u$(WORDPRESS_CONTAINER_USER) $(WORDPRESS_CONTAINER_NAME) sh -c 'cd $${WORDPRESS_BASE_DIR:-/bitnami/wordpress}/wp-content/plugins/$(PLUGIN_NAME) && rm -rf .git vendor composer.lock && find symlink -mindepth 1 -maxdepth 1 -type d | xargs rm -rf'
@rm -rf $(DIST_DIR)/*

down:
@echo "Stopping docker compose services"
Expand Down

0 comments on commit 54f8b87

Please sign in to comment.