diff --git a/infra/init.sh b/infra/init.sh index b179e19c4..ed9d422ae 100755 --- a/infra/init.sh +++ b/infra/init.sh @@ -18,39 +18,50 @@ helm install bt-metallb metallb/metallb --version 0.14.3 --namespace=bt helm install bt-cert-manager cert-manager/cert-manager --set installCRDs=true --version 1.14.1 --namespace=bt helm install bt-ingress-nginx ingress-nginx/ingress-nginx --version 4.9.1 --namespace=bt -helm install bt-base ./base --namespace=bt +helm package ./infra/base --version 1.0.0 --dependency-update +helm push ./base-1.0.0.tgz oci://registry-1.docker.io/octoberkeleytime/bt-base +helm install bt-base oci://registry-1.docker.io/octoberkeleytime/bt-base --namespace=bt \ + --version=1.0.0 # ========== -# DEPENDENCIES +# BUILD CHARTS AND PUSH TO REGISTRY # ========== -helm dependencies build ./mongo -helm dependencies build ./redis +helm package ./infra/mongo --version 1.0.0 --dependency-update +helm push ./mongo-1.0.0.tgz oci://registry-1.docker.io/octoberkeleytime/bt-mongo +helm package ./infra/redis --version 1.0.0 --dependency-update +helm push ./redis-1.0.0.tgz oci://registry-1.docker.io/octoberkeleytime/bt-redis # ========== # PRODUCTION # ========== -helm install bt-prod-mongo ./mongo --namespace=bt +helm install bt-prod-mongo oci://registry-1.docker.io/octoberkeleytime/bt-mongo --namespace=bt \ + --version=1.0.0 -helm install bt-prod-redis ./redis --namespace=bt +helm install bt-prod-redis oci://registry-1.docker.io/octoberkeleytime/bt-redis --namespace=bt \ + --version=1.0.0 -helm install bt-prod-app ./app --namespace=bt \ +helm install bt-prod-app oci://registry-1.docker.io/octoberkeleytime/bt-app --namespace=bt \ + --version=1.0.0 \ --set host=stanfurdtime.com # ========== # STAGING # ========== -helm install bt-stage-mongo ./mongo --namespace=bt \ +helm install bt-stage-mongo oci://registry-1.docker.io/octoberkeleytime/bt-mongo --namespace=bt \ + --version=1.0.0 \ --set mongodb.commonLabels.env=stage \ --set hostPath=/data/stage/db \ --set mongodb.persistence.existingClaim=bt-stage-mongo-pvc -helm install bt-stage-redis ./redis --namespace=bt \ +helm install bt-stage-redis oci://registry-1.docker.io/octoberkeleytime/bt-redis --namespace=bt \ + --version=1.0.0 \ --set redis.commonLabels.env=stage -helm install bt-stage-app ./app --namespace=bt \ +helm install bt-stage-app oci://registry-1.docker.io/octoberkeleytime/bt-app --namespace=bt \ + --version=0.1.0-stage \ --set env=stage \ --set frontend.image.tag=latest \ --set backend.image.tag=latest \ @@ -62,15 +73,18 @@ helm install bt-stage-app ./app --namespace=bt \ # DEVELOPMENT # ========== -helm install bt-dev-mongo ./mongo --namespace=bt \ +helm install bt-dev-mongo oci://registry-1.docker.io/octoberkeleytime/bt-mongo --namespace=bt \ + --version=1.0.0 \ --set mongodb.commonLabels.env=dev \ --set hostPath=/data/dev/db \ --set mongodb.persistence.existingClaim=bt-dev-mongo-pvc -helm install bt-dev-redis ./redis --namespace=bt \ +helm install bt-dev-redis oci://registry-1.docker.io/octoberkeleytime/bt-redis --namespace=bt \ + --version=1.0.0 \ --set redis.commonLabels.env=dev -helm install bt-dev-app ./app --namespace=bt \ +helm install bt-dev-app oci://registry-1.docker.io/octoberkeleytime/bt-app --namespace=bt \ + --version=0.1.0-dev \ --set env=dev \ --set ttl=24 \ --set frontend.image.tag=dev1 \