Skip to content

Commit

Permalink
Update pipeline.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cisc0f authored May 1, 2024
1 parent 6b09f1d commit 5fc3b25
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .tekton/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ kind: Pipeline
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"tekton.dev/v1","kind":"Pipeline","metadata":{"annotations":{},"creationTimestamp":"2024-04-29T03:49:01Z","generation":1,"managedFields":[{"apiVersion":"tekton.dev/v1","fieldsType":"FieldsV1","fieldsV1":{"f:spec":{".":{},"f:finally":{},"f:params":{},"f:tasks":{},"f:workspaces":{}}},"manager":"Mozilla","operation":"Update","time":"2024-04-29T03:49:01Z"}],"name":"cd-pipeline","namespace":"fc2475-dev","resourceVersion":"2172270571","uid":"e709a048-1dae-4884-a299-2aa74065fe01"},"spec":{"params":[{"description":"The url of the github repo","name":"GIT_REPO","type":"string"},{"default":"master","description":"The reference (branch)","name":"GIT_REF","type":"string"}],"tasks":[{"name":"git-clone","params":[{"name":"url","value":"$(params.GIT_REPO)"},{"name":"revision","value":"$(params.GIT_REF)"},{"name":"refspec","value":""},{"name":"submodules","value":"true"},{"name":"depth","value":"1"},{"name":"sslVerify","value":"true"},{"name":"crtFileName","value":"ca-bundle.crt"},{"name":"subdirectory","value":""},{"name":"sparseCheckoutDirectories","value":""},{"name":"deleteExisting","value":"true"},{"name":"httpProxy","value":""},{"name":"httpsProxy","value":""},{"name":"noProxy","value":""},{"name":"verbose","value":"true"},{"name":"gitInitImage","value":"registry.redhat.io/openshift-pipelines/pipelines-git-init-rhel8@sha256:66f219b4d54a41b945cb5715ecd1fbb5d25431cf8dad4b06914a4cdc65b298cc"},{"name":"userHome","value":"/home/git"}],"taskRef":{"kind":"ClusterTask","name":"git-clone"},"workspaces":[{"name":"output","workspace":"pipeline-workspace"}]}],"workspaces":[{"name":"pipeline-workspace"}]}}
{"apiVersion":"tekton.dev/v1","kind":"Pipeline","metadata":{"annotations":{},"creationTimestamp":"2024-04-30T13:59:46Z","generation":5,"managedFields":[{"apiVersion":"tekton.dev/v1","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration":{}}},"f:spec":{}},"manager":"kubectl-client-side-apply","operation":"Update","time":"2024-04-30T13:59:46Z"},{"apiVersion":"tekton.dev/v1","fieldsType":"FieldsV1","fieldsV1":{"f:spec":{"f:finally":{},"f:params":{},"f:tasks":{},"f:workspaces":{}}},"manager":"Mozilla","operation":"Update","time":"2024-04-30T19:01:51Z"}],"name":"cd-pipeline","namespace":"fc2475-dev","resourceVersion":"2178509890","uid":"cfaeba82-1736-4204-868e-171d093fa9d5"},"spec":{"params":[{"description":"The url of the github repo","name":"GIT_REPO","type":"string"},{"default":"master","description":"The reference (branch)","name":"GIT_REF","type":"string"},{"default":"shopcarts","description":"Name of the service","name":"APP_NAME","type":"string"},{"default":"image-registry.openshift-image-registry.svc:5000/$(context.pipelineRun.namespace)/$(params.APP_NAME):latest","description":"Name of the image to build","name":"IMAGE_NAME","type":"string"}],"tasks":[{"name":"git-clone","params":[{"name":"url","value":"$(params.GIT_REPO)"},{"name":"revision","value":"$(params.GIT_REF)"},{"name":"refspec","value":""},{"name":"submodules","value":"true"},{"name":"depth","value":"1"},{"name":"sslVerify","value":"true"},{"name":"crtFileName","value":"ca-bundle.crt"},{"name":"subdirectory","value":""},{"name":"sparseCheckoutDirectories","value":""},{"name":"deleteExisting","value":"true"},{"name":"httpProxy","value":""},{"name":"httpsProxy","value":""},{"name":"noProxy","value":""},{"name":"verbose","value":"true"},{"name":"gitInitImage","value":"registry.redhat.io/openshift-pipelines/pipelines-git-init-rhel8@sha256:66f219b4d54a41b945cb5715ecd1fbb5d25431cf8dad4b06914a4cdc65b298cc"},{"name":"userHome","value":"/home/git"}],"taskRef":{"kind":"ClusterTask","name":"git-clone"},"workspaces":[{"name":"output","workspace":"pipeline-workspace"}]},{"name":"pylint","params":[{"name":"image","value":"docker.io/python:3.11-slim"},{"name":"path","value":"service"},{"name":"args","value":[]},{"name":"requirements_file","value":"requirements.txt"}],"runAfter":["git-clone"],"taskRef":{"kind":"Task","name":"pylint"},"workspaces":[{"name":"source","workspace":"pipeline-workspace"}]},{"name":"testing","params":[{"name":"PYTEST_ARGS","value":[]},{"name":"SECRET_NAME","value":"postgres-creds"},{"name":"SECRET_KEY","value":"database_uri"}],"runAfter":["git-clone"],"taskRef":{"kind":"Task","name":"pytest-env"},"workspaces":[{"name":"source","workspace":"pipeline-workspace"}]},{"name":"buildah","params":[{"name":"IMAGE","value":"$(params.IMAGE_NAME)"},{"name":"BUILDER_IMAGE","value":"registry.redhat.io/rhel8/buildah@sha256:b48f410efa0ff8ab0db6ead420a5d8d866d64af846fece5efb185230d7ecf591"},{"name":"STORAGE_DRIVER","value":"vfs"},{"name":"DOCKERFILE","value":"./Dockerfile"},{"name":"CONTEXT","value":"."},{"name":"TLSVERIFY","value":"true"},{"name":"FORMAT","value":"oci"},{"name":"BUILD_EXTRA_ARGS","value":""},{"name":"PUSH_EXTRA_ARGS","value":""},{"name":"SKIP_PUSH","value":"false"}],"runAfter":["pylint","testing"],"taskRef":{"kind":"ClusterTask","name":"buildah"},"workspaces":[{"name":"source","workspace":"pipeline-workspace"}]},{"name":"deploy-image","params":[{"name":"image_name","value":"$(params.IMAGE_NAME)"},{"name":"manifest_dir","value":"k8s"}],"runAfter":["buildah"],"taskRef":{"kind":"Task","name":"deploy-image"},"workspaces":[{"name":"source","workspace":"pipeline-workspace"}]}],"workspaces":[{"name":"pipeline-workspace"}]}}
creationTimestamp: '2024-04-30T13:59:46Z'
generation: 5
generation: 7
managedFields:
- apiVersion: tekton.dev/v1
fieldsType: FieldsV1
Expand All @@ -17,7 +17,7 @@ metadata:
'f:spec': {}
manager: kubectl-client-side-apply
operation: Update
time: '2024-04-30T13:59:46Z'
time: '2024-05-01T19:18:32Z'
- apiVersion: tekton.dev/v1
fieldsType: FieldsV1
fieldsV1:
Expand All @@ -28,10 +28,10 @@ metadata:
'f:workspaces': {}
manager: Mozilla
operation: Update
time: '2024-04-30T19:01:51Z'
time: '2024-05-01T21:38:18Z'
name: cd-pipeline
namespace: fc2475-dev
resourceVersion: '2178509890'
resourceVersion: '2182774585'
uid: cfaeba82-1736-4204-868e-171d093fa9d5
spec:
params:
Expand All @@ -50,6 +50,10 @@ spec:
description: Name of the image to build
name: IMAGE_NAME
type: string
- default: 'https://shopcart-fc2475-dev.apps.sandbox-m3.1530.p1.openshiftapps.com/'
description: Deployed service base_url
name: BASE_URL
type: string
tasks:
- name: git-clone
params:
Expand Down Expand Up @@ -170,5 +174,21 @@ spec:
workspaces:
- name: source
workspace: pipeline-workspace
- name: behave
params:
- name: BASE_URL
value: $(params.BASE_URL)
- name: WAIT_SECONDS
value: '60'
- name: DRIVER
value: chrome
runAfter:
- deploy-image
taskRef:
kind: Task
name: behave
workspaces:
- name: source
workspace: pipeline-workspace
workspaces:
- name: pipeline-workspace

0 comments on commit 5fc3b25

Please sign in to comment.