Skip to content

Commit

Permalink
⛑️ tisy notes ⛑️
Browse files Browse the repository at this point in the history
  • Loading branch information
eformat committed Dec 9, 2020
1 parent 648095e commit c8c2ed7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pipelines/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,45 +61,45 @@ 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
CUSTOMER=ali
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
}
}
//}
Expand Down

0 comments on commit c8c2ed7

Please sign in to comment.