feat: allow custom image name

This commit is contained in:
ange 2024-05-10 12:49:09 +02:00
parent 49db58672f
commit 17b82e6a91
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,9 @@ inputs:
dockerfile: dockerfile:
description: Dockerfile path description: Dockerfile path
default: ./Dockerfile default: ./Dockerfile
tag: image:
description: Image tag description: Image name and tag
default: ${{ gitea.ref_name }} default: ${{ gitea.repository }}:${{ gitea.ref_name }}
username: username:
description: Registry username description: Registry username
default: ${{ gitea.repository_owner }} default: ${{ gitea.repository_owner }}

View File

@ -16,4 +16,4 @@ REGISTRY="$(echo "$GITHUB_SERVER_URL" | sed 's .*:// ')"
--cache=true \ --cache=true \
--context "${INPUT_DOCKERFILE%/*}" \ --context "${INPUT_DOCKERFILE%/*}" \
--dockerfile "$INPUT_DOCKERFILE" \ --dockerfile "$INPUT_DOCKERFILE" \
--destination "$REGISTRY/$GITHUB_REPOSITORY:$INPUT_TAG" --destination "$REGISTRY/$INPUT_IMAGE"