Files

35 lines
1.6 KiB
YAML

# ══════════════════════════════════════════════════════════════════
# BREAKING CHANGE? BUMP THE MAJOR IN cue/cluster/cluster.cue
# ══════════════════════════════════════════════════════════════════
# Everything pinning `@v1` gets this the moment it publishes. A change
# a consumer cannot absorb needs a new major, or it breaks them.
# ══════════════════════════════════════════════════════════════════
name: build-image
description: Build the repository's Dockerfile and push it to this forge, writing the digest for the deploy step.
inputs:
name:
description: Image name under the owner. Defaults to the repository name.
required: false
context:
description: Build context directory.
required: false
default: .
dockerfile:
description: Path to the Dockerfile. Defaults to <context>/Dockerfile.
required: false
outputs:
image:
description: The image just pushed, as name@sha256:digest. Pass it to the deploy step.
runs:
using: docker
image: docker://gitea.512.dev/ci/toolbox@sha256:88ed6a0562f98a35b02d0c13254d0b69b343675ac98709451d526a9c58782e40
entrypoint: /usr/local/lib/actions/build-image.sh
env:
PLUGIN_NAME: ${{ inputs.name }}
PLUGIN_CONTEXT: ${{ inputs.context }}
PLUGIN_DOCKERFILE: ${{ inputs.dockerfile }}