diff --git a/action.yaml b/action.yaml index 8169481..50396df 100644 --- a/action.yaml +++ b/action.yaml @@ -9,6 +9,10 @@ inputs: required: false default: "latest" + image_remote_tag: + required: false + default: "" + repository_location: required: false default: "europe-docker.pkg.dev/puzzle-and-play/docker" @@ -22,9 +26,10 @@ runs: IMAGE_LOCAL_NAME: "${{ inputs.image_name }}" IMAGE_LOCAL_TAG: "${{ inputs.image_local_tag }}" IMAGE_REMOTE_NAME: "${{ inputs.repository_location }}/${{ inputs.image_name }}" - IMAGE_REMOTE_TAG: "${{ github.ref_name }}-${{ github.run_number }}" + IMAGE_REMOTE_TAG: "${{ inputs.image_remote_tag }}" run: | + : ${IMAGE_REMOTE_TAG:="${{ github.ref_name }}-${{ github.run_number }}"} echo "image: $IMAGE_REMOTE_NAME:$IMAGE_REMOTE_TAG" docker tag \