diff --git a/pipelines/ostree-package-pipeline.yaml b/pipelines/ostree-package-pipeline.yaml new file mode 100644 index 0000000..b21a37d --- /dev/null +++ b/pipelines/ostree-package-pipeline.yaml @@ -0,0 +1,47 @@ +# A pipeline to build and deploy my fork of the debian packaging for ostree. +--- +apiVersion: tekton.dev/v1beta1 +kind: Pipeline +metadata: + name: ostree-package-pipeline +spec: + description: "Package fork of ostree." + params: + - name: deploy + type: string + description: "'true' if we should deploy the image using ansible." + workspaces: + - name: shared-data + description: Shared data. + - name: git-credentials + description: tekton git credentials + - name: deploy-credentials + description: tekton credentials to deployment server + tasks: + - name: fetch-repo + workspaces: + - name: output + workspace: shared-data + - name: ssh-directory + workspace: git-credentials + params: + - name: url + value: ssh://git.jpace121.net:2222/packaging/ostree + - name: branch + value: jamesp/latest + taskRef: + name: j7s-git-clone + - name: build + runAfter: ["fetch-repo"] + workspaces: + - name: source + workspace: shared-data + - name: ssh-directory + workspace: deploy-credentials + params: + - name: deploy + value: $(params.deploy) + - name: ansible-file-path + value: ./j7s-build-files + taskRef: + name: j7s-ansible-build \ No newline at end of file diff --git a/runs/ostree-package.yaml b/runs/ostree-package.yaml new file mode 100644 index 0000000..5f3e03e --- /dev/null +++ b/runs/ostree-package.yaml @@ -0,0 +1,25 @@ +apiVersion: tekton.dev/v1beta1 +kind: PipelineRun +metadata: + generateName: ostree-package- +spec: + pipelineRef: + name: ostree-package-pipeline + workspaces: + - name: shared-data + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + - name: git-credentials + secret: + secretName: git-credentials + - name: deploy-credentials + secret: + secretName: deploy-credentials + params: + - name: deploy + value: "true" \ No newline at end of file