mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-24 18:06:16 +07:00
46 lines
939 B
YAML
46 lines
939 B
YAML
|
apiVersion: tekton.dev/v1beta1
|
||
|
kind: Pipeline
|
||
|
metadata:
|
||
|
name: homelab
|
||
|
spec:
|
||
|
workspaces:
|
||
|
- name: shared-data
|
||
|
tasks:
|
||
|
- name: fetch-repo
|
||
|
taskRef:
|
||
|
name: git-clone
|
||
|
workspaces:
|
||
|
- name: output
|
||
|
workspace: shared-data
|
||
|
params:
|
||
|
- name: url
|
||
|
value: http://gitea-http.gitea:3000/ops/homelab
|
||
|
- name: revision
|
||
|
value: master
|
||
|
- name: external
|
||
|
runAfter:
|
||
|
- fetch-repo
|
||
|
workspaces:
|
||
|
- name: source
|
||
|
workspace: shared-data
|
||
|
taskRef:
|
||
|
name: terraform-external
|
||
|
---
|
||
|
apiVersion: tekton.dev/v1beta1
|
||
|
kind: PipelineRun
|
||
|
metadata:
|
||
|
name: homelab-run
|
||
|
spec:
|
||
|
serviceAccountName: terraform-sa
|
||
|
pipelineRef:
|
||
|
name: homelab
|
||
|
workspaces:
|
||
|
- name: shared-data
|
||
|
volumeClaimTemplate:
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 1Gi
|