Use older image and fix deploy pipeline.
This commit is contained in:
		@ -128,6 +128,8 @@ spec:
 | 
				
			|||||||
      - name: dev
 | 
					      - name: dev
 | 
				
			||||||
        container:
 | 
					        container:
 | 
				
			||||||
          image: quay.io/devfile/universal-developer-image:latest
 | 
					          image: quay.io/devfile/universal-developer-image:latest
 | 
				
			||||||
 | 
					          memoryLimit: 4Gi
 | 
				
			||||||
 | 
					          memoryRequest: 2Gi
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - id: build
 | 
					      - id: build
 | 
				
			||||||
        exec:
 | 
					        exec:
 | 
				
			||||||
 | 
				
			|||||||
@ -4,7 +4,7 @@ COPY go.mod /guestbook/
 | 
				
			|||||||
COPY go.sum /guestbook/
 | 
					COPY go.sum /guestbook/
 | 
				
			||||||
RUN cd /guestbook && go build
 | 
					RUN cd /guestbook && go build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FROM docker.io/ubuntu:jammy-20221130
 | 
					FROM docker.io/ubuntu:jammy-20230522
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY --from=builder /guestbook/guestbook /app/guestbook
 | 
					COPY --from=builder /guestbook/guestbook /app/guestbook
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -28,6 +28,22 @@ spec:
 | 
				
			|||||||
      name: PATH_CONTEXT
 | 
					      name: PATH_CONTEXT
 | 
				
			||||||
      type: string
 | 
					      type: string
 | 
				
			||||||
  tasks:
 | 
					  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
 | 
					    - name: image-scan
 | 
				
			||||||
      params:
 | 
					      params:
 | 
				
			||||||
        - name: image
 | 
					        - name: image
 | 
				
			||||||
@ -38,6 +54,8 @@ spec:
 | 
				
			|||||||
          value: roxsecrets
 | 
					          value: roxsecrets
 | 
				
			||||||
        - name: output_format
 | 
					        - name: output_format
 | 
				
			||||||
          value: json
 | 
					          value: json
 | 
				
			||||||
 | 
					      runAfter:
 | 
				
			||||||
 | 
					        - fetch-repository
 | 
				
			||||||
      taskRef:
 | 
					      taskRef:
 | 
				
			||||||
        kind: ClusterTask
 | 
					        kind: ClusterTask
 | 
				
			||||||
        name: rox-image-scan
 | 
					        name: rox-image-scan
 | 
				
			||||||
@ -57,11 +75,14 @@ spec:
 | 
				
			|||||||
    - name: deploy
 | 
					    - name: deploy
 | 
				
			||||||
      params:
 | 
					      params:
 | 
				
			||||||
        - name: SCRIPT
 | 
					        - 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:
 | 
					      runAfter:
 | 
				
			||||||
        - image-check
 | 
					        - image-check
 | 
				
			||||||
      taskRef:
 | 
					      taskRef:
 | 
				
			||||||
        kind: ClusterTask
 | 
					        kind: ClusterTask
 | 
				
			||||||
        name: openshift-client
 | 
					        name: openshift-client
 | 
				
			||||||
 | 
					      workspaces:
 | 
				
			||||||
 | 
					        - name: manifest-dir
 | 
				
			||||||
 | 
					          workspace: workspace
 | 
				
			||||||
  workspaces:
 | 
					  workspaces:
 | 
				
			||||||
    - name: workspace
 | 
					    - name: workspace
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user