mirror of https://github.com/rancher/gitjob.git
26 lines
521 B
YAML
26 lines
521 B
YAML
apiVersion: gitjob.cattle.io/v1
|
|
kind: GitJob
|
|
metadata:
|
|
name: example
|
|
spec:
|
|
git:
|
|
branch: master
|
|
repo: https://github.com/fleetrepoci/gitjobs-example
|
|
jobSpec:
|
|
template:
|
|
spec:
|
|
serviceAccountName: kubectl-apply
|
|
restartPolicy: "Never"
|
|
containers:
|
|
- image: "rancher/kubectl:v1.23.3"
|
|
name: kubectl-apply
|
|
command:
|
|
- kubectl
|
|
args:
|
|
- apply
|
|
- -f
|
|
- deployment.yaml
|
|
workingDir: /workspace/source
|
|
|
|
|