Add pipeline tests in anticipation of future enablement

Signed-off-by: Javier Romero <rjavier@vmware.com>
This commit is contained in:
Javier Romero 2021-03-05 14:52:28 -06:00
parent df2bf1b444
commit adb46b7304
3 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Add an internal registry as sidecar to the task so we can upload it directly
# from our tests without having to go to an external registry.
add_sidecar_registry ${TMPF}
# Add dependency tasks
add_task git-clone latest
add_task buildpacks latest
add_task buildpacks-phases latest

View File

@ -0,0 +1,41 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: buildpacks-ws-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
---
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: buildpacks-pipelinerun
labels:
app.kubernetes.io/description: A PipelineRun configured to cache build artifacts in an volume.
spec:
pipelineRef:
name: buildpacks
params:
- name: BUILDER_IMAGE
value: docker.io/cnbs/sample-builder:bionic@sha256:6c03dd604503b59820fd15adbc65c0a077a47e31d404a3dcad190f3179e920b5
- name: TRUST_BUILDER
value: "false"
- name: APP_IMAGE
value: localhost:5000/buildpacks-app
- name: SOURCE_URL
value: https://github.com/buildpacks/samples
- name: SOURCE_SUBPATH
value: apps/ruby-bundler
workspaces:
- name: source-ws
subPath: source
persistentVolumeClaim:
claimName: buildpacks-ws-pvc
- name: cache-ws
subPath: cache
persistentVolumeClaim:
claimName: buildpacks-ws-pvc

View File

@ -17,6 +17,7 @@ fi
SAMPLE_FILE="$1"
if [ ! -f "$SAMPLE_FILE" ]; then
echo "File '$SAMPLE_FILE' not found!"
exit 1
fi
IMAGE_NAME="$2"