mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-18 10:42:14 -05:00
e6cf8d3845
* Move tests to the test directory * Fix linting errors * Add states back * Add xml back
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: { }
|