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-coursera1308/accounts:1
21+ - image : IMAGE_NAME_HERE
2222 name : accounts
2323 resources : {}
2424
Original file line number Diff line number Diff line change 7979 runAfter :
8080 - tests
8181 - lint
82+
83+ - name : deploy
84+ workspaces :
85+ - name : manifest-dir
86+ workspace : pipeline-workspace
87+ taskRef :
88+ name : openshift-client
89+ kind : ClusterTask
90+ params :
91+ - name : SCRIPT
92+ value : |
93+ echo "Updating manifest..."
94+ sed -i "s|IMAGE_NAME_HERE|$(params.build-image)|g" deploy/deployment.yaml
95+ cat deploy/deployment.yaml
96+ echo "Deploying to OpenShift..."
97+ oc apply -f deploy/
98+ oc get pods -l app=accounts
99+ runAfter :
100+ - build
82101
You can’t perform that action at this time.
0 commit comments