2020-03-04 16:34:51 +00:00
|
|
|
apiVersion: tekton.dev/v1beta1
|
2019-09-25 20:11:07 +00:00
|
|
|
kind: Task
|
|
|
|
metadata:
|
|
|
|
name: gcloud
|
|
|
|
spec:
|
2020-03-04 16:34:51 +00:00
|
|
|
params:
|
|
|
|
- name: gcloud-image
|
|
|
|
description: gcloud CLI container image to run this task
|
|
|
|
default: google/cloud-sdk:slim
|
|
|
|
- name: ARGS
|
|
|
|
type: array
|
|
|
|
description: gcloud CLI arguments to run
|
|
|
|
default: ["help"]
|
2019-09-25 20:11:07 +00:00
|
|
|
steps:
|
|
|
|
- name: gcloud
|
2020-03-04 16:34:51 +00:00
|
|
|
image: "$(params.gcloud-image)"
|
2019-09-25 20:11:07 +00:00
|
|
|
command: ["/usr/bin/gcloud"]
|
2020-03-04 16:34:51 +00:00
|
|
|
args: ["$(params.ARGS)"]
|