File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ inputs:
33
33
used to pass the Dockerfile as $TIMESTAMP_TAG
34
34
required : false
35
35
default : ' '
36
+ image_name :
37
+ description : ' Name of the image to build, e.g. "opensciencegrid/software-base"'
38
+ required : false
39
+ default : ' '
36
40
37
41
runs :
38
42
using : " composite"
42
46
- id : generate-image-name
43
47
shell : bash
44
48
run : |
45
- if [[ -n "${{ inputs.name }}" ]]; then
49
+ if [[ -n ${{ inputs.image_name }} ]]; then
50
+ IMAGE_NAME="${{ inputs.image_name }}"
51
+ elif [[ -n "${{ inputs.name }}" ]]; then
46
52
# A name was specified
47
53
IMAGE_NAME=${{ inputs.name }}
48
54
elif [[ "${{ inputs.context }}" == "." ]] || \
@@ -56,10 +62,10 @@ runs:
56
62
# grab the image name from the full context path instead
57
63
IMAGE_NAME=${GITHUB_REPOSITORY%%/*}/$(basename ${{ inputs.context }})
58
64
else
59
- echo "${{ inputs.context }} is not a directory"
65
+ echo "No image_name provided and ${{ inputs.context }} is not a directory"
60
66
exit 1
61
67
fi
62
- echo "::set-output name=image::$IMAGE_NAME"
68
+ echo "::set-output name=image::${ IMAGE_NAME,,} "
63
69
64
70
- name : Generate tag list
65
71
id : generate-tag-list
You can’t perform that action at this time.
0 commit comments