From 17b82e6a91eff50b8cbb8bd58d8e86e0e68dbafb Mon Sep 17 00:00:00 2001 From: ange Date: Fri, 10 May 2024 12:49:09 +0200 Subject: [PATCH] feat: allow custom image name --- action.yaml | 6 +++--- build.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yaml b/action.yaml index 0b132ad..6cad83e 100644 --- a/action.yaml +++ b/action.yaml @@ -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 }} diff --git a/build.sh b/build.sh index 2db5a17..ed10246 100755 --- a/build.sh +++ b/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"