58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
# SPDX-FileCopyrightText: 2024 Håvard Moen <post@haavard.name>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
name: kaniko-action
|
|
author: Håvard Moen
|
|
description: |
|
|
Build and optionally push images using [Kaniko](https://github.com/GoogleContainerTools/kaniko)
|
|
|
|
inputs:
|
|
cache:
|
|
description: 'Set this flag as true to opt into caching with Kaniko.'
|
|
required: false
|
|
default: false
|
|
cache_repo:
|
|
description: 'Repository to use for cache, required if cache is true'
|
|
required: false
|
|
cache_ttl:
|
|
description: 'Cache timeout in hours. Defaults to Kaniko default'
|
|
required: false
|
|
context:
|
|
description: 'Path to the build context. Default to the workspace'
|
|
required: false
|
|
credentials:
|
|
description: |
|
|
Whitespace-separated list of authentication credentials in the format
|
|
registry_server=user:password
|
|
required: false
|
|
destinations:
|
|
description: |
|
|
Destinations to push images to, whitespace-separated.
|
|
Required if push is true.
|
|
required: false
|
|
docker_file:
|
|
description: |
|
|
Path to the Dockerfile.
|
|
Defaults to Dockerfile. It must be in the context.
|
|
If set, this action passes the relative path to Kaniko,
|
|
similar to the behavior of `docker build --dockerfile`
|
|
required: false
|
|
push:
|
|
description: "Push an image to the registry. Default to true"
|
|
required: false
|
|
default: true
|
|
version:
|
|
description: |
|
|
Version of the software, to be added as
|
|
`org.opencontainers.image.version` label
|
|
required: false
|
|
build_args:
|
|
description: |
|
|
Build arguments to pass to Kaniko.
|
|
Each line represents a separate build argument in the format KEY=VALUE.
|
|
required: false
|
|
|
|
runs:
|
|
using: docker
|
|
image: Dockerfile
|