Skip to content

Commit

Permalink
Add deployment verification instead of the current sleep step (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
schen1 authored Jun 3, 2020
1 parent 62c6c89 commit 8d4e833
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions basic-spring-boot-tekton/.openshift/templates/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ objects:
description: The image tag
- name: imageStream
description: The imageStream
- name: deploymentResource
description: the deployment resource, e.g deployment or deploymentconfig
- name: deployment
description: the deployment
description: the deployment name
steps:
- name: tag-image
image: quay.io/openshift-pipeline/openshift-cli:latest
Expand All @@ -122,12 +124,15 @@ objects:
- tag
- "$(params.fromNamespace)/$(params.imageStream):$(params.tag)"
- "$(params.toNamespace)/$(params.imageStream):$(params.tag)"
# not sure what to do here
- name: verify-deployment
image: quay.io/openshift-pipeline/openshift-cli:latest
command: ["sleep"]
command: ["oc"]
args:
- "1"
- rollout
- status
- "$(params.deploymentResource)/$(params.deployment)"
- -n
- "$(params.toNamespace)"
- apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
Expand Down Expand Up @@ -158,7 +163,9 @@ objects:
- name: tag
value: latest
- name: imageStream
value: ${APPLICATION_NAME}
value: ${APPLICATION_NAME}
- name: deploymentResource
value: deploymentconfig
- name: deployment
value: ${APPLICATION_NAME}
- name: deploy-to-stage
Expand All @@ -175,6 +182,8 @@ objects:
value: latest
- name: imageStream
value: ${APPLICATION_NAME}
- name: deploymentResource
value: deploymentconfig
- name: deployment
value: ${APPLICATION_NAME}
- name: deploy-to-prod
Expand All @@ -190,7 +199,9 @@ objects:
- name: tag
value: latest
- name: imageStream
value: ${APPLICATION_NAME}
value: ${APPLICATION_NAME}
- name: deploymentResource
value: deploymentconfig
- name: deployment
value: ${APPLICATION_NAME}
- apiVersion: build.openshift.io/v1
Expand Down

0 comments on commit 8d4e833

Please sign in to comment.