Skip to content

Commit

Permalink
add clean-build action
Browse files Browse the repository at this point in the history
  • Loading branch information
C Cheng committed Jan 8, 2025
1 parent af4b60e commit 7383f3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ __check_defined = \


.PHONY : \
clean-build \
help \
infra-check-app-database-roles \
infra-check-compliance-checkov \
Expand Down Expand Up @@ -185,6 +186,10 @@ endif
DATE := $(shell date -u '+%Y%m%d.%H%M%S')
INFO_TAG := $(DATE).$(USER)

clean-build: ## Clean docker containers
@:$(call check_defined, APP_NAME, the name of subdirectory of /infra that holds the application's infrastructure code)
cd $(APP_NAME) && $(MAKE) clean-build \

release-build: ## Build release for $APP_NAME and tag it with current git hash
@:$(call check_defined, APP_NAME, the name of subdirectory of /infra that holds the application's infrastructure code)
cd $(APP_NAME) && $(MAKE) release-build \
Expand Down
3 changes: 3 additions & 0 deletions app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ release-build:
$(OPTS) \
.

clean-build:
docker volume rm $(docker volume ls -qf dangling=true)

##################################################
# Local Development Environment Setup
##################################################
Expand Down

0 comments on commit 7383f3e

Please sign in to comment.