Add jira integration and separate pipelines.

This commit is contained in:
2023-07-31 09:56:05 +12:00
parent c0ecafdcbc
commit 5f961c203f
6 changed files with 113 additions and 18 deletions

View File

@ -8,7 +8,7 @@ metadata:
operator.tekton.dev/operand-name: openshift-pipelines-addons
pipeline.openshift.io/strategy: docker
pipeline.openshift.io/type: kubernetes
name: guestbook
name: guestbook-build
namespace: guestbook
spec:
params:
@ -88,14 +88,5 @@ spec:
taskRef:
kind: ClusterTask
name: rox-image-check
- name: deploy
params:
- name: SCRIPT
value: oc rollout status deploy/$(params.APP_NAME)
runAfter:
- image-check
taskRef:
kind: ClusterTask
name: openshift-client
workspaces:
- name: workspace

View File

@ -10,7 +10,7 @@ metadata:
operator.tekton.dev/operand-name: openshift-pipelines-addons
pipeline.openshift.io/strategy: docker
pipeline.openshift.io/type: kubernetes
tekton.dev/pipeline: guestbook
tekton.dev/pipeline: guestbook-build
spec:
params:
- name: APP_NAME
@ -24,7 +24,7 @@ spec:
- name: PATH_CONTEXT
value: 2023-07-31-acs-workflows/guestbook
pipelineRef:
name: guestbook
name: guestbook-build
serviceAccountName: pipeline
timeout: 1h0m0s
workspaces:

View File

@ -0,0 +1,67 @@
---
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
labels:
app.kubernetes.io/instance: guestbook
app.kubernetes.io/name: guestbook
operator.tekton.dev/operand-name: openshift-pipelines-addons
pipeline.openshift.io/strategy: docker
pipeline.openshift.io/type: kubernetes
name: guestbook-deploy
namespace: guestbook
spec:
params:
- default: guestbook
name: APP_NAME
type: string
- default: 'https://github.com/jmhbnz/talks.git'
name: GIT_REPO
type: string
- default: main
name: GIT_REVISION
type: string
- default: 'image-registry.openshift-image-registry.svc:5000/guestbook/guestbook'
name: IMAGE_NAME
type: string
- default: 2023-07-31-acs-workflows/guestbook
name: PATH_CONTEXT
type: string
tasks:
- name: image-scan
params:
- name: image
value: image-registry.openshift-image-registry.svc:5000/guestbook/guestbook
- name: rox_api_token
value: roxsecrets
- name: rox_central_endpoint
value: roxsecrets
- name: output_format
value: json
taskRef:
kind: ClusterTask
name: rox-image-scan
- name: image-check
params:
- name: image
value: image-registry.openshift-image-registry.svc:5000/guestbook/guestbook
- name: rox_api_token
value: roxsecrets
- name: rox_central_endpoint
value: roxsecrets
runAfter:
- image-scan
taskRef:
kind: ClusterTask
name: rox-image-check
- name: deploy
params:
- name: SCRIPT
value: oc rollout status deploy/$(params.APP_NAME)
runAfter:
- image-check
taskRef:
kind: ClusterTask
name: openshift-client
workspaces:
- name: workspace