Use older image and fix deploy pipeline.
This commit is contained in:
		@ -128,6 +128,8 @@ spec:
 | 
			
		||||
      - name: dev
 | 
			
		||||
        container:
 | 
			
		||||
          image: quay.io/devfile/universal-developer-image:latest
 | 
			
		||||
          memoryLimit: 4Gi
 | 
			
		||||
          memoryRequest: 2Gi
 | 
			
		||||
    commands:
 | 
			
		||||
      - id: build
 | 
			
		||||
        exec:
 | 
			
		||||
 | 
			
		||||
@ -4,7 +4,7 @@ COPY go.mod /guestbook/
 | 
			
		||||
COPY go.sum /guestbook/
 | 
			
		||||
RUN cd /guestbook && go build
 | 
			
		||||
 | 
			
		||||
FROM docker.io/ubuntu:jammy-20221130
 | 
			
		||||
FROM docker.io/ubuntu:jammy-20230522
 | 
			
		||||
 | 
			
		||||
COPY --from=builder /guestbook/guestbook /app/guestbook
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user