Skip to content

Commit

Permalink
Update Makefile - commented out update-env as per P.W.
Browse files Browse the repository at this point in the history
  • Loading branch information
rarmitag authored Jan 10, 2025
1 parent a45b97f commit 180595b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ mac-cov: local-test ## Run the coverage report and display in a browser window (
#################################################################################
cd: ## CD flow
ifeq ($(TAG_NAME), test)
cd: update-env
## cd: update-env
oc -n "$(OPENSHIFT_REPOSITORY)-tools" tag $(DOCKER_NAME):dev $(DOCKER_NAME):$(TAG_NAME)
else ifeq ($(TAG_NAME), prod)
cd: update-env
## cd: update-env
oc -n "$(OPENSHIFT_REPOSITORY)-tools" tag $(DOCKER_NAME):$(TAG_NAME) $(DOCKER_NAME):$(TAG_NAME)-$(shell date +%F)
oc -n "$(OPENSHIFT_REPOSITORY)-tools" tag $(DOCKER_NAME):test $(DOCKER_NAME):$(TAG_NAME)
else
TAG_NAME=dev
cd: build update-env tag
## cd: build update-env tag
endif

build: ## Build the docker container
Expand All @@ -113,7 +113,7 @@ push: #build ## Push the docker container to the registry & tag latest
docker push $(REGISTRY_IMAGE):latest

VAULTS=`cat devops/vaults.json`
update-env: ## Update env from 1pass
## update-env: ## Update env from 1pass
oc -n "$(OPS_REPOSITORY)-$(TAG_NAME)" exec "dc/vault-service-$(TAG_NAME)" -- ./scripts/1pass.sh \
-m "secret" \
-e "$(TAG_NAME)" \
Expand Down Expand Up @@ -143,4 +143,4 @@ db: ## Update the local database
.DEFAULT_GOAL := help

help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

0 comments on commit 180595b

Please sign in to comment.