Use older image and fix deploy pipeline.

This commit is contained in:
2023-07-31 14:04:19 +12:00
parent 5f961c203f
commit 6832cf878b
3 changed files with 25 additions and 2 deletions

View File

@ -28,6 +28,22 @@ spec:
name: PATH_CONTEXT
type: string
tasks:
- name: fetch-repository
params:
- name: url
value: $(params.GIT_REPO)
- name: revision
value: $(params.GIT_REVISION)
- name: subdirectory
value: ''
- name: deleteExisting
value: 'true'
taskRef:
kind: ClusterTask
name: git-clone
workspaces:
- name: output
workspace: workspace
- name: image-scan
params:
- name: image
@ -38,6 +54,8 @@ spec:
value: roxsecrets
- name: output_format
value: json
runAfter:
- fetch-repository
taskRef:
kind: ClusterTask
name: rox-image-scan
@ -57,11 +75,14 @@ spec:
- name: deploy
params:
- name: SCRIPT
value: oc rollout status deploy/$(params.APP_NAME)
value: ls -la && oc apply -f 2023-07-31-acs-workflows/guestbook/manifests/deployment.yaml && oc rollout status deploy/$(params.APP_NAME)
runAfter:
- image-check
taskRef:
kind: ClusterTask
name: openshift-client
workspaces:
- name: manifest-dir
workspace: workspace
workspaces:
- name: workspace