Thursday, June 10, 2021

tekton

 apiVersion: tekton.dev/v1beta1

kind: Pipeline

metadata:

  name: build-and-deploy4

spec:

  workspaces:

  - name: shared-workspace

  params:

    - description: name of the deployment to be patched

      name: deployment-name

      type: string

    - default: 'https://github.com/mguazzardo/helloworld'

      description: url of the git repo for the code of deployment

      name: git-url

      type: string

    - default: master

      description: revision to be used from repo of the code for deployment

      name: git-revision

      type: string

    - default: 'image-registry.openshift-image-registry.svc:5000/debian/debian'

      description: image to be build from the code

      name: IMAGE

      type: string

  tasks:

    - name: fetch-repository

      params:

        - name: url

          value: $(params.git-url)

        - name: deleteExisting

          value: 'true'

        - name: revision

          value: $(params.git-revision)

      taskRef:

        kind: ClusterTask

        name: git-clone

      workspaces:

        - name: output

          workspace: shared-workspace

    - name: s2i-website

      params:

        - name: IMAGE

          value: image-registry.openshift-image-registry.svc:5000/debian/debian

        - name: TLSVERIFY

          value: 'false'

        - name: PATH_CONTEXT

          value: .

      runAfter:

        - fetch-repository

      taskRef:

        kind: ClusterTask

        name: s2i-php

      workspaces:

        - name: source

          workspace: shared-workspace

    - name: apply-manifests

      taskRef:

        name: apply-manifests

      workspaces:

      - name: source

        workspace: shared-workspace

      runAfter:

      - s2i-website


No comments: