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.

27 lines
701 B

apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: podman-build
spec:
params:
- name: manifest-name
type: string
- name: context-dir
type: string
default: .
- name: arch
type: string
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: quay.io/podman/stable
script: |
#!/bin/bash
set -Eeuo pipefail
export STORAGE_DRIVER=vfs
podman build --no-cache --manifest $(params.manifest-name) $(workspaces.source-workspace.path)/$(params.context-dir)