mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-23 06:31:02 -05:00
f0e69a5a7d
* Fix yaml linting issues * Enable yamllint rules * Replace comment * Address linting and set line-length longer Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
34 lines
909 B
YAML
34 lines
909 B
YAML
---
|
|
apiVersion: tekton.dev/v1beta1
|
|
kind: Task
|
|
metadata:
|
|
name: example-task-name
|
|
spec:
|
|
params:
|
|
- 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: { }
|