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.
29 lines
938 B
29 lines
938 B
apiVersion: tekton.dev/v1beta1
|
|
kind: Task
|
|
metadata:
|
|
name: podman-build
|
|
spec:
|
|
params:
|
|
- name: manifest-name
|
|
type: string
|
|
- name: context-dir
|
|
type: string
|
|
default: .
|
|
workspaces:
|
|
- name: source-workspace
|
|
description: Workspace containing source code
|
|
- name: container-storage
|
|
description: Persistent volume to store container images
|
|
mountPath: /var/lib/containers
|
|
steps:
|
|
- name: build
|
|
image: registry.redhat.io/rhel8/buildah@sha256:b48f410efa0ff8ab0db6ead420a5d8d866d64af846fece5efb185230d7ecf591
|
|
script: |
|
|
#!/bin/bash
|
|
set -Eeuo pipefail
|
|
buildah bud --storage-driver=vfs --no-cache --manifest $(params.manifest-name) $(workspaces.source-workspace.path)/$(params.context-dir)
|
|
#podman build --no-cache --manifest $(params.manifest-name) $(workspaces.source-workspace.path)/$(params.context-dir)
|
|
securityContext:
|
|
capabilities:
|
|
add:
|
|
- SETFCAP
|
|
|