1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00
catalog/task/gcs-generic/0.1
Yulia Gaponenko f4708d478e Add linux/amd64 platform annotation to the rest of the tasks
At this moment all tasks which can be executed on linux/s390x or
linux/ppc64le are tested and labelled accordingly.
The rest of the tasks can be labelled as `linux/amd64`, which
is default platform and where tasks are already tested via
default PR testing cycle.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-29 17:08:38 +01:00
..
samples gcs-generic: Make credential file optional. 2020-09-29 15:36:51 +01:00
gcs-generic.yaml Add linux/amd64 platform annotation to the rest of the tasks 2021-10-29 17:08:38 +01:00
README.md Add linux/amd64 platform annotation to the rest of the tasks 2021-10-29 17:08:38 +01:00

Google Cloud Storage Tasks

These Tasks are for copying to and from GCS buckets from Pipelines.

These Tasks do a similar job to the GCS PipelineResource and are intended as its replacement. This is part of our plan to offer replacement Tasks for Pipeline Resources as well as document those replacements.

gcs-generic

A Task that allows users customize and extend the gsutil command line based on their needs.

Workspaces

  • credentials: A workspace that contains a service account key as a JSON file. This workspace should be populated from a Secret in your TaskRuns and PipelineRuns.

Parameters

  • command: The command line that you would like to enter to the workspace. (required)
  • options: The extended command line that you would like to enter. (required)
  • serviceAccountPath: The path to the service account credential file in your credentials workspace. (default: "service_account.json")
  • image: The google cloud image that will be used in steps. (default: "google/cloud-sdk")

Platforms

The Task can be run on linux/amd64 platform.

Usage

gcs-generic

This TaskRun uses the gcs-generic Task to list all the objects in the directory.

apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: gcs-generic-taskrun
spec:
  taskRef:
    name: gcs-generic
  workspaces:
  - name: credentials
    secret:
      secretName: my-gcs-credentials
  params:
  - name: command
    value: ls
  - name: options
    value:
     - "-l"
     - "gs://tekton-releases"