File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1818 app : accounts
1919 spec :
2020 containers :
21- - image : us.icr.io/sn-labs-imranullahkh/accounts:1
21+ - image : IMAGE_NAME_HERE
2222 name : accounts
2323 resources : {}
2424
Original file line number Diff line number Diff line change 5858 value : " $(params.build-image)"
5959 runAfter :
6060 - tests
61+
62+ - name : deploy
63+ workspaces :
64+ - name : manifest-dir
65+ workspace : pipeline-workspace
66+ taskRef :
67+ name : openshift-client
68+ kind : ClusterTask
69+ params :
70+ - name : SCRIPT
71+ value : |
72+ echo "Updating manifest..."
73+ sed -i "s|IMAGE_NAME_HERE|$(params.build-image)|g" deploy/deployment.yaml
74+ cat deploy/deployment.yaml
75+ echo "Deploying to OpenShift..."
76+ oc apply -f deploy/
77+ oc get pods -l app=accounts
78+ runAfter :
79+ - build
You can’t perform that action at this time.
0 commit comments