File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ inputs:
34
34
required : false
35
35
default : ' '
36
36
image_name :
37
- description : ' name of docker image'
37
+ description : ' Name of the image to build, e.g. "opensciencegrid/software-base" '
38
38
required : false
39
39
default : ' '
40
40
46
46
- id : generate-image-name
47
47
shell : bash
48
48
run : |
49
- if [[ ${{ inputs.image_name }} != '' ]]; then
49
+ if [[ -n ${{ inputs.image_name }} ]]; then
50
50
IMAGE_NAME="${{ inputs.image_name }}"
51
51
elif [[ -n "${{ inputs.name }}" ]]; then
52
52
# A name was specified
62
62
# grab the image name from the full context path instead
63
63
IMAGE_NAME=${GITHUB_REPOSITORY%%/*}/$(basename ${{ inputs.context }})
64
64
else
65
- echo "${{ inputs.context }} is not a directory"
65
+ echo "No image_name provided and ${{ inputs.context }} is not a directory"
66
66
exit 1
67
67
fi
68
68
echo "::set-output name=image::$IMAGE_NAME"
You can’t perform that action at this time.
0 commit comments