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:
description: Dockerfile path
default: ./Dockerfile
tag:
description: Image tag
default: ${{ gitea.ref_name }}
image:
description: Image name and tag
default: ${{ gitea.repository }}:${{ gitea.ref_name }}
username:
description: Registry username
default: ${{ gitea.repository_owner }}

View File

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