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.
44 lines
908 B
44 lines
908 B
apiVersion: tekton.dev/v1beta1
|
|
kind: Pipeline
|
|
metadata:
|
|
name: demo-appdev
|
|
spec:
|
|
workspaces:
|
|
- name: scratch
|
|
params:
|
|
- 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)"
|
|
workspaces:
|
|
- name: src
|
|
workspace: scratch
|
|
subPath: src
|
|
- name: containers
|
|
workspace: scratch
|
|
subPath: containers
|
|
taskRef:
|
|
name: buildah
|
|
|