1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-24 06:15:46 +00:00

Add CONTEXT param to buildah task.

This commit is contained in:
Glenn Marcy 2020-01-28 08:58:36 -05:00 committed by tekton-robot
parent 5358e7b7cd
commit ea6fdd2d6f
2 changed files with 6 additions and 1 deletions

View File

@ -21,6 +21,8 @@ kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/build
note below. (_default:_ quay.io/buildah/stable:v1.11.0)
* **DOCKERFILE**: The path to the `Dockerfile` to execute (_default:_
`./Dockerfile`)
* **CONTEXT**: Path to the directory to use as context (_default:_
`.`)
* **TLSVERIFY**: Verify the TLS on the registry endpoint (for push/pull to a
non-TLS registry) (_default:_ `true`)

View File

@ -12,6 +12,9 @@ spec:
- name: DOCKERFILE
description: Path to the Dockerfile to build.
default: ./Dockerfile
- name: CONTEXT
description: Path to the directory to use as context.
default: .
- name: TLSVERIFY
description: Verify the TLS on the registry endpoint (for push/pull to a non-TLS registry)
default: "true"
@ -29,7 +32,7 @@ spec:
- name: build
image: $(inputs.params.BUILDER_IMAGE)
workingDir: /workspace/source
command: ['buildah', 'bud', '--tls-verify=$(inputs.params.TLSVERIFY)', '--layers', '-f', '$(inputs.params.DOCKERFILE)', '-t', '$(outputs.resources.image.url)', '.']
command: ['buildah', 'bud', '--tls-verify=$(inputs.params.TLSVERIFY)', '--layers', '-f', '$(inputs.params.DOCKERFILE)', '-t', '$(outputs.resources.image.url)', '$(inputs.params.CONTEXT)']
volumeMounts:
- name: varlibcontainers
mountPath: /var/lib/containers