kaniko-action/action.yml

59 lines
1.7 KiB
YAML
Raw Normal View History

2024-11-04 21:17:00 +00:00
# SPDX-FileCopyrightText: 2024 Håvard Moen <post@haavard.name>
#
# SPDX-License-Identifier: GPL-3.0-only
2024-11-04 21:17:00 +00:00
name: kaniko-action
author: Håvard Moen
description: |
Build and optionally push images using [Kaniko](https://github.com/GoogleContainerTools/kaniko)
2024-11-03 10:16:20 +00:00
inputs:
2024-11-04 21:17:00 +00:00
cache:
description: 'Set this flag as true to opt into caching with Kaniko.'
2024-11-04 21:17:00 +00:00
required: false
default: false
cache_repo:
description: 'Repository to use for cache, required if cache is true'
required: false
2024-11-04 21:17:00 +00:00
cache_ttl:
description: 'Cache timeout in hours. Defaults to Kaniko default'
2024-11-04 21:17:00 +00:00
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
2024-11-04 21:17:00 +00:00
required: false
2024-11-09 12:48:38 +00:00
destinations:
description: |
Destinations to push images to, whitespace-separated.
Required if push is true.
2024-11-04 21:17:00 +00:00
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`
2024-11-04 21:17:00 +00:00
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.
2024-11-04 21:17:00 +00:00
required: false
2024-11-03 10:16:20 +00:00
runs:
using: docker
2024-11-04 21:17:00 +00:00
image: Dockerfile