Skip to content

Commit 56f59b3

Browse files
Merge pull request #10 from brianhlin/main
Fix image name bug for the default context
2 parents fc2c6a6 + 9f3aabb commit 56f59b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ runs:
114114
[[ ${{ inputs.context }} == "./" ]]; then
115115
# Try to guess the image name from our docker repo naming conventions
116116
# E.g., opensciencegrid/docker-frontier-squid
117-
IMAGE_NAME=${GITHUB_REPOSITORY/opensciencegrid\/docker-//}-${DEFAULT_TAG}
117+
IMAGE_NAME=${GITHUB_REPOSITORY/opensciencegrid\/docker-//}:${DEFAULT_TAG}
118118
elif [[ -d ${{ inputs.context }} ]]; then
119119
# Assume that the containing dir is the image name
120-
IMAGE_NAME=$(basename ${{ inputs.context }})-${DEFAULT_TAG}
120+
IMAGE_NAME=$(basename ${{ inputs.context }}):${DEFAULT_TAG}
121121
else
122122
echo "No output_image provided and ${{ inputs.context }} is not a directory"
123123
exit 1

0 commit comments

Comments
 (0)