mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-06-09 10:39:04 +00:00
Since buildah now supports multi arch image built support (ref: https://github.com/containers/buildah/issues/1590) This feature will allow building images based on multiple architectures Signed-off-by: divyansh42 <diagrawa@redhat.com>
58 lines
1.8 KiB
YAML
58 lines
1.8 KiB
YAML
name: 'Buildah Build'
|
|
description: 'Build a container image, with or without a Dockerfile'
|
|
author: 'Red Hat'
|
|
branding:
|
|
icon: circle
|
|
color: red
|
|
inputs:
|
|
image:
|
|
description: 'The name (reference) of the image to build'
|
|
required: true
|
|
tags:
|
|
description: 'The tags of the image to build. For multiple tags, seperate by a space. For example, "latest v1".'
|
|
required: false
|
|
default: latest
|
|
base-image:
|
|
description: 'The base image to use to create a new container image'
|
|
required: true
|
|
dockerfiles:
|
|
description: 'List of Dockerfile paths (eg: ./Dockerfile)'
|
|
required: false
|
|
context:
|
|
description: 'Path of the directory to use as context (default: .)'
|
|
required: false
|
|
default: '.'
|
|
content:
|
|
description: 'List of files/directories to copy inside the base image'
|
|
required: false
|
|
entrypoint:
|
|
description: 'The entry point to set for containers based on image'
|
|
required: false
|
|
port:
|
|
description: 'The port to expose when running containers based on image'
|
|
required: false
|
|
workdir:
|
|
description: 'The working directory to use within the container'
|
|
required: false
|
|
envs:
|
|
description: 'List of environment variables to be set when running containers based on image'
|
|
required: false
|
|
build-args:
|
|
description: 'List of --build-args to pass to buildah'
|
|
required: false
|
|
oci:
|
|
description: 'Set to true to build using the OCI image format instead of the Docker image format'
|
|
default: 'false'
|
|
required: false
|
|
archs:
|
|
description: 'ARCH of the image to build, for multiple ARCHs seperate by a comma. For example, "arm64,amd64"'
|
|
default: 'amd64'
|
|
required: false
|
|
outputs:
|
|
image:
|
|
description: 'Name of the image built'
|
|
tags:
|
|
description: 'List of the tags that were created, separated by spaces'
|
|
runs:
|
|
using: 'node12'
|
|
main: 'dist/index.js'
|