Skip to content

Commit

Permalink
✨ add Pipelines as Code
Browse files Browse the repository at this point in the history
  • Loading branch information
goern committed Aug 15, 2023
1 parent 591a71f commit 2e1fcaa
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .tekton/repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: pipelinesascode.tekton.dev/v1alpha1
kind: Repository
metadata:
name: micropipenv
spec:
url: https://github.com/goern/micropipenv
50 changes: 50 additions & 0 deletions .tekton/tox-on-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: tox-on-pr
annotations:
pipelinesascode.tekton.dev/on-event: "[pull_request]"
pipelinesascode.tekton.dev/on-target-branch: "[master]"
pipelinesascode.tekton.dev/task: "git-clone"
pipelinesascode.tekton.dev/max-keep-runs: "5"
spec:
params:
- name: repo_url
value: "{{ repo_url }}"
- name: revision
value: "{{ revision }}"
pipelineSpec:
params:
- name: repo_url
- name: revision
workspaces:
- name: source
- name: basic-auth
tasks:
- name: fetch-repository
taskRef:
name: git-clone
workspaces:
- name: output
workspace: source
- name: basic-auth
workspace: basic-auth
params:
- name: url
value: $(params.repo_url)
- name: revision
value: $(params.revision)

workspaces:
- name: source
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
- name: basic-auth
secret:
secretName: "{{ git_auth_secret }}"

0 comments on commit 2e1fcaa

Please sign in to comment.