Skip to content

Commit

Permalink
Fix comando update e adiciona help para update
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelveigarangel committed Sep 2, 2024
1 parent cdb51da commit 56a7394
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,12 @@ release_docker_push:

exclude_opac_production: ## Exclude all production images
@if [ -n "$$(docker images --filter=reference='infrascielo/opac_5' -q)" ]; then \
echo "Deleting containers $$(docker images --filter=reference='infrascielo/opac_5' -q --format '{{.Repository}}:{{.Tag}}')" \
echo "Deleting containers $$(docker images --filter=reference='infrascielo/opac_5' -q --format '{{.Repository}}:{{.Tag}}')"; \
docker rmi -f $$(docker images --filter=reference='infrascielo/opac_5' -q); \
else \
echo "No images found for 'infrascielo/opac_5'"; \
fi

# help: update - stop, remove old images, and start the containers
.PHONY: update
update: stop exclude_opac_production up

0 comments on commit 56a7394

Please sign in to comment.