Skip to content

Commit

Permalink
Add YAML test for non-build-gcs GCS resource
Browse files Browse the repository at this point in the history
This test fetches a publicly-visible zip archive object from GCS, unzips
it and reads the file it expects to find within.
  • Loading branch information
imjasonh authored and tekton-robot committed Aug 21, 2019
1 parent 3817b17 commit 0d7f515
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/taskruns/gcs-resource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:
name: gcs-resource
spec:
taskSpec:
inputs:
resources:
- name: source
type: storage
steps:
- image: alpine
command: ['unzip', 'source/archive.zip']
- image: alpine
command: ['cat', 'file.txt']
inputs:
resources:
- name: source
resourceSpec:
type: storage
params:
- name: location
value: gs://build-crd-tests/archive.zip
- name: type
value: gcs

0 comments on commit 0d7f515

Please sign in to comment.