Skip to content

Commit 818a2e1

Browse files
authored
WIP: Add image name parameter in case $org/$repo doesn't cut it.
1 parent 2914a68 commit 818a2e1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ inputs:
2929
description: "Sets the target stage to build"
3030
required: false
3131
default: ''
32+
image_name:
33+
description: "Image name (excluding registry). Defaults to $organization/$repository"
34+
required: false
35+
# TODO: see if this works. If not, add a step to form this value.
36+
default: ${{ inputs.organization }}/${{ inputs.repository }}
3237
login:
3338
description: 'Docker login'
3439
required: false
@@ -54,7 +59,7 @@ inputs:
5459
outputs:
5560
image:
5661
description: "Docker image name"
57-
value: ${{ inputs.registry }}/${{ inputs.organization }}/${{ inputs.repository }}
62+
value: ${{ inputs.registry }}/${{ inputs.image_name }}
5863
tag:
5964
description: "Docker image tag"
6065
value: ${{ steps.tag.outputs.output }}
@@ -68,7 +73,7 @@ runs:
6873
with:
6974
# list of Docker images to use as base name for tags
7075
images: |
71-
${{ inputs.registry }}/${{ inputs.organization }}/${{ inputs.repository }}
76+
${{ inputs.registry }}/${{ inputs.image_name }}
7277
# generate Docker tags based on the following events/attributes
7378
tags: |
7479
type=sha

0 commit comments

Comments
 (0)