From f6d899b1b422252da9eb2698236dd820319f6c96 Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Fri, 28 Jul 2023 18:10:03 +0000 Subject: [PATCH] Update docker/build/action.yaml --- docker/build/action.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/build/action.yaml b/docker/build/action.yaml index b1f8de7..6f7319a 100644 --- a/docker/build/action.yaml +++ b/docker/build/action.yaml @@ -1,6 +1,10 @@ name: Build docker image inputs: + registry: + required: false + type: string + default: $GITHUB_SERVER_URL image: required: true type: string @@ -16,4 +20,4 @@ runs: - name: Build image run: | TAG=$([ -n "${{inputs.tag}}" ] && echo "${{inputs.tag}}" || [ "$GITHUB_REF" == "refs/heads/develop" ] && echo "latest" || echo "$GITHUB_REF_NAME" | sed -E "s/[_/]/-/g") - docker build --no-cache -t "${{inputs.image}}:$TAG" . + docker build --no-cache -t "${{inputs.registry}}/${{inputs.image}}:$TAG" .