From c8c2ed7536d5f29276d8605c367270541d457f83 Mon Sep 17 00:00:00 2001 From: Mike Hepburn Date: Wed, 9 Dec 2020 10:48:50 +1000 Subject: [PATCH] =?UTF-8?q?=E2=9B=91=EF=B8=8F=20tisy=20notes=20=E2=9B=91?= =?UTF-8?q?=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipelines/Jenkinsfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pipelines/Jenkinsfile b/pipelines/Jenkinsfile index 21c0b08..34c2277 100644 --- a/pipelines/Jenkinsfile +++ b/pipelines/Jenkinsfile @@ -61,12 +61,14 @@ pipeline { openshift.withCluster(/* cluster deets */) { openshift.newProject("${DEST_RUN_PROJECT}") openshift.withProject("${DEST_RUN_PROJECT}") { + // bootstrap argocd + // install infrastructure + // add app secrets - // install applications - // configure applications for client + // install applications /* NAMESPACE=labs-staging @@ -74,32 +76,30 @@ pipeline { oc new-project $NAMESPACE -- helm repo add curriki https://nexus-labs-ci-cd.apps.curriki.apac-1.rht-labs.com/repository/helm-charts + -- api helm install --dependency-update $CUSTOMER-api curriki/curriki-api --set image_repository=image-registry.openshift-image-registry.svc:5000 --set image_namespace=$NAMESPACE --set image_name=curriki-api --set image_version=latest --set builds.enabled=false --set istag.enabled=false oc tag labs-ci-cd/curriki-api:latest $NAMESPACE/$CUSTOMER-api-curriki-api:latest oc tag labs-ci-cd/curriki-api-base:latest $NAMESPACE/$CUSTOMER-api-curriki-api-base:latest oc tag labs-ci-cd/curriki-api-fpm:latest $NAMESPACE/$CUSTOMER-api-curriki-api-fpm:latest + -- ui helm install --dependency-update $CUSTOMER-ui curriki/curriki-ui --set image_repository=image-registry.openshift-image-registry.svc:5000 --set image_namespace=$NAMESPACE --set image_name=curriki-ui --set image_version=latest --set builds.enabled=false --set istag.enabled=false oc tag labs-ci-cd/curriki-ui:latest $NAMESPACE/$CUSTOMER-ui-curriki-ui:latest - -- oc patch route/$CUSTOMER-api-curriki-api-api --patch "{\"spec\":{\"host\": \"$(oc get route $CUSTOMER-ui-curriki-ui -o custom-columns=ROUTE:.spec.host --no-headers)\"}}" --type=merge oc patch route/$CUSTOMER-api-curriki-api-storage --patch "{\"spec\":{\"host\": \"$(oc get route $CUSTOMER-ui-curriki-ui -o custom-columns=ROUTE:.spec.host --no-headers)\"}}" --type=merge oc patch route/$CUSTOMER-api-curriki-api-socket --patch "{\"spec\":{\"host\": \"$(oc get route $CUSTOMER-ui-curriki-ui -o custom-columns=ROUTE:.spec.host --no-headers)\"}}" --type=merge - -- - helm install curriki/curriki-admin - oc tag labs-ci-cd/curriki-admin:latest $NAMESPACE/curriki-admin:latest - oc tag labs-ci-cd/curriki-tsugi:latest $NAMESPACE/curriki-tsugi:latest + -- tsugi helm install --dependency-update $CUSTOMER-tsugi curriki/curriki-tsugi --set image_repository=image-registry.openshift-image-registry.svc:5000 --set image_namespace=$NAMESPACE --set image_name=curriki-tsugi --set image_version=latest --set builds.enabled=false --set istag.enabled=false oc tag labs-ci-cd/curriki-tsugi:latest $NAMESPACE/$CUSTOMER-tsugi-curriki-tsugi:latest - - helm install --dependency-update $CUSTOMER-admin curriki/curriki-admin --set image_repository=image-registry.openshift-image-registry.svc:5000 --set image_namespace=$NAMESPACE --set image_name=curriki-admin --set image_version=latest --set builds.enabled=false --set istag.enabled=false - oc tag labs-ci-cd/curriki-admin:latest $NAMESPACE/$CUSTOMER-admin-curriki-admin:latest + -- admin helm install --dependency-update $CUSTOMER-admin curriki/curriki-admin --set image_repository=image-registry.openshift-image-registry.svc:5000 --set image_namespace=$NAMESPACE --set image_name=curriki-admin --set image_version=latest --set builds.enabled=false --set istag.enabled=false --set app_url=http://ali-admin-curriki-admin-labs-staging.apps.curriki.apac-1.rht-labs.com --set api_url=http://ali-ui-curriki-ui-labs-staging.apps.curriki.apac-1.rht-labs.com/api/api --set front_end_url=http://ali-ui-curriki-ui-labs-staging.apps.curriki.apac-1.rht-labs.com --set api_img_url=http://ali-ui-curriki-ui-labs-staging.apps.curriki.apac-1.rht-labs.com/api oc tag labs-ci-cd/curriki-admin:latest $NAMESPACE/$CUSTOMER-admin-curriki-admin:latest */ + + // configure applications for client } } //}