Skip to content

Commit

Permalink
fix: pinned kustomize version in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Biriukov <[email protected]>
  • Loading branch information
birtony committed Jun 29, 2023
1 parent 2171b61 commit e69190e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions k8s/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ LOGIN_CONSENT_IMG_LOCAL ?= ghcr.io/trustbloc/sandbox-login-consent-serve
CMS_IMG_LOCAL ?= ghcr.io/trustbloc/sandbox-cms:latest
CLI_IMG_LOCAL ?= ghcr.io/trustbloc/sandbox-cli:latest

.PHONY: deploy-all deploy-components setup-deploy ci-deploy-all ci-deploy-core ci-setup-deploy ci-minikube-setup local-setup-deploy minikube-up minikube-down minikube-image-load
OS = $(shell uname -s | tr '[:upper:]' '[:lower:]')
ARCH = $(shell uname -m | sed 's/x86_64/amd64/')

.PHONY: deploy-all deploy-components setup-deploy ci-deploy-all ci-deploy-core ci-setup-deploy ci-minikube-setup kustomize local-setup-deploy minikube-up minikube-down minikube-image-load

undeploy-all:
# TODO instead of delete all, run undeploy target on each component
Expand Down Expand Up @@ -62,9 +65,14 @@ minikube-image-load:
@rm cli_img_local.image
@rm cms_img_local.image

ci-minikube-setup: pull-core-deployment
ci-minikube-setup: kustomize pull-core-deployment
cd scripts && ./ci_minikube_setup.sh

kustomize:
@{ \
curl -sSLo - https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v4.3.0/kustomize_v4.3.0_$(OS)_$(ARCH).tar.gz | tar xzf - -C /usr/local/bin ;\
}

minikube-up: pull-core-deployment
cd scripts && ./minikube_setup.sh
@echo "Apply/verify the required changes to /etc/hosts. Once done, press ENTER" && read L
Expand Down

0 comments on commit e69190e

Please sign in to comment.