1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00

Fix orka-* task as per pipelines 0.24+

Add a parameter through which we can set the `HOME` env variable which
if not provided will default to `/tekton/home`. Also set the default
`workingDir` as `/workspace`.

Signed-off-by: vinamra28 <vinjain@redhat.com>
This commit is contained in:
vinamra28 2021-06-23 11:47:35 +05:30 committed by tekton-robot
parent d517969521
commit d4798eb701
2 changed files with 18 additions and 0 deletions

View File

@ -88,6 +88,15 @@ spec:
description: |
The name of the key in the VM name config map, which stores the name of the generated VM configuration.
default: vm-name
- name: user-home
type: string
default: /tekton/home
description: Absolute path to the user's home directory.
stepTemplate:
env:
- name: HOME
value: $(params.user-home)
workingDir: /workspace
steps:
- name: copy-script
image: docker.io/macstadium/orka-tekton-runner:2020-10-23-a93757dc-0.1@sha256:e8ed3370dcb91cdb8bcd4e9a7e9f6652879d80acdab9644cda69a98cd8c93339

View File

@ -91,6 +91,15 @@ spec:
If ssh-key is true, this parameter should specify the name of the key in
the VM SSH credentials secret that holds the private SSH key.
default: password
- name: user-home
type: string
default: /tekton/home
description: Absolute path to the user's home directory.
stepTemplate:
env:
- name: HOME
value: $(params.user-home)
workingDir: /workspace
steps:
- name: copy-script
image: docker.io/macstadium/orka-tekton-runner:2020-10-23-a93757dc-0.1@sha256:e8ed3370dcb91cdb8bcd4e9a7e9f6652879d80acdab9644cda69a98cd8c93339