lint/test/linters/tekton/bad/tekton_bad_1.yml

35 lines
909 B
YAML
Raw Permalink Normal View History

---
2020-10-13 13:05:56 -04:00
apiVersion: tekton.dev/v1beta1
kind: Task
2020-10-13 11:21:23 -04:00
metadata:
2020-10-13 13:05:56 -04:00
name: example-task-name
2020-10-13 11:21:23 -04:00
spec:
params:
2020-10-13 13:05:56 -04:00
- name: pathToDockerFile
type: string
description: The path to the dockerfile to build
default: /workspace/workspace/Dockerfile
resources:
inputs:
- name: workspace
type: git
outputs:
- name: builtImage
type: image
steps:
- name: ubuntu-example
image: ubuntu
args: ["ubuntu-build-example", "SECRETS-example.md"]
- image: gcr.io/example-builders/build-example
command: ["echo"]
args: ["$(params.pathToDockerFile)"]
- name: dockerfile-pushexample
image: gcr.io/example-builders/push-example
args: ["push", "$(resources.outputs.builtImage.url)"]
volumeMounts:
- name: example-volume
mountPath: /var/run/docker.sock
volumes:
- name: sample-example-volume
emptyDir: { }