Demo of Application Development with OpenShift
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

52 lines
1.1 KiB

apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: demo-appdev
spec:
workspaces:
- name: scratch
params:
- name: buildahPlatforms
type: array
default:
- linux/x86_64
- linux/arm64/v8
- name: gitRepositoryURL
type: string
- name: outputContainerImage
type: string
tasks:
# Clone the git repository
- name: git-clone
params:
- name: url
value: "$(params.gitRepositoryURL)"
- name: verbose
value: "false"
workspaces:
- name: output
workspace: scratch
subPath: src
taskRef:
name: git-clone
# Build and push the container images
- name: buildah
runAfter:
- git-clone
params:
- name: buildahVersion
value: latest
- name: outputContainerImage
value: "$(params.outputContainerImage)"
- name: buildahPlatforms
value:
- "$(params.buildahPlatforms[*])"
workspaces:
- name: src
workspace: scratch
subPath: src
- name: containers
workspace: scratch
subPath: containers
taskRef:
name: buildah