feat: allow custom image name
This commit is contained in:
parent
49db58672f
commit
17b82e6a91
@ -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 }}
|
||||||
|
2
build.sh
2
build.sh
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user