43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: 'Container upload'
|
|
description: 'Build and upload a Docker container'
|
|
inputs:
|
|
registry-url:
|
|
descripion: >
|
|
Docker registry to push the image to.
|
|
|
|
Defaults to forgejo server public URL.
|
|
default: ${{ forgejo.server_url }}
|
|
registry-user:
|
|
description: >
|
|
User to authenticate as with the docker registry.
|
|
|
|
By default, uses whatever actor is provided by Forgejo. This might not be what you want, consider specifying it explicitly.
|
|
default: ${{ forgejo.actor }}
|
|
image-name:
|
|
description: >
|
|
Name part of the image tag.
|
|
|
|
If ommited, inferred from the repository the action is being run from.
|
|
required: false
|
|
tag:
|
|
description: >
|
|
Tag part of the resulting image tag.
|
|
|
|
By default, uses whatever is provided Forgejo -- branch name, or a git tag.
|
|
|
|
NOTE: default value might be empty, if used outside of push or release; this will make the action fail.
|
|
default: ${{ forgejo.ref_name }}
|
|
token:
|
|
description: >
|
|
A token used to authorize the image push.
|
|
|
|
No default value, must be provided.
|
|
required: true
|
|
context:
|
|
description: 'Relative path under $GITHUB_WORKSPACE to a build context of the container'
|
|
default: .
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- run: ${{ forgejo.action_path }}/main.sh
|
|
shell: bash
|