Skip to content

Commit 8357d2e

Browse files
authored
add image_name parameter
1 parent eb915d4 commit 8357d2e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ inputs:
3333
used to pass the Dockerfile as $TIMESTAMP_TAG
3434
required: false
3535
default: ''
36+
image_name:
37+
description: 'name of docker image'
38+
required: false
39+
default: ''
3640

3741
runs:
3842
using: "composite"
@@ -42,7 +46,9 @@ runs:
4246
- id: generate-image-name
4347
shell: bash
4448
run: |
45-
if [[ -n "${{ inputs.name }}" ]]; then
49+
if [[ ${{ inputs.image_name }} != '' ]]; then
50+
IMAGE_NAME="${{ inputs.image_name }}"
51+
elif [[ -n "${{ inputs.name }}" ]]; then
4652
# A name was specified
4753
IMAGE_NAME=${{ inputs.name }}
4854
elif [[ "${{ inputs.context }}" == "." ]] || \

0 commit comments

Comments
 (0)