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 f885837
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions k8s/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
export DEPLOYMENT_ENV ?= local
export DOMAIN ?= ${DEPLOYMENT_ENV}.trustbloc.dev
export BLOC_DOMAIN ?= orb-1.${DOMAIN}
export TERM ?= xterm-256color
export TERM ?= xterm-256color
export PATH ?=
COMPONENTS ?=
ISSUER_IMG_LOCAL ?= ghcr.io/trustbloc/sandbox-issuer:latest
RP_IMG_LOCAL ?= ghcr.io/trustbloc/sandbox-rp:latest
Expand All @@ -15,7 +16,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 +66,17 @@ 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:
kustomize:
@{ \
mkdir -p ~/.local/bin ;\
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 ~/.local/bin ;\
}
PATH=~/.local/bin:$PATH

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 f885837

Please sign in to comment.