feat: allow custom image name
This commit is contained in:
parent
49db58672f
commit
17b82e6a91
2 changed files with 4 additions and 4 deletions
|
@ -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 }}
|
||||
|
|
2
build.sh
2
build.sh
|
@ -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"
|
||||
|
|
Reference in a new issue