Skip to content

Commit

Permalink
Merge pull request #151 from samuelveigarangel/add-command-update-mak…
Browse files Browse the repository at this point in the history
…efile

Adiciona comando update ao Makefile para remoção e atualização de containers de produção
  • Loading branch information
samuelveigarangel authored Jul 12, 2024
2 parents 1caf8b5 + 3dec42f commit 84ebfc8
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -256,4 +256,19 @@ release_docker_tag:
release_docker_push:
@echo "[Pushing] pushing image: $(REPO_SLUG)/$(PROJECT_NAME):$(OPAC_WEBAPP_VERSION)"
@docker push $(REPO_SLUG)/$(PROJECT_NAME):$(OPAC_WEBAPP_VERSION)
@echo "[Pushing] push $(REPO_SLUG)/$(PROJECT_NAME):$(OPAC_WEBAPP_VERSION) done!"
@echo "[Pushing] push $(REPO_SLUG)/$(PROJECT_NAME):$(OPAC_WEBAPP_VERSION) done!"


#################
##image update##
#################

exclude_opac_production: ## Exclude all productions containers
@if [ -n "$$(docker images --filter=reference='infrascielo/opac_5' -q)" ]; then \
docker rmi -f $$(docker images --filter=reference='infrascielo/opac_5' -q ); \
echo "Exclude all opac production containers" \
else \
echo "No images found for '*_prod'"; \
fi

update: stop rm exclude_opac_production up

0 comments on commit 84ebfc8

Please sign in to comment.