Skip to content

Commit c1d6d78

Browse files
authored
Merge pull request #4 from RyanEweSeng/SOFTWARE-5011.add-deprecated-tags
Add deprecated tags to opensciencegrid/images build (SOFTWARE-5011)
2 parents 6968940 + f1e5510 commit c1d6d78

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@ runs:
5555
run: |
5656
docker_repo="$REGISTRY/opensciencegrid/${{ steps.generate-image-name.outputs.image }}"
5757
tag_list=()
58-
for image_tag in "$OSG_SERIES-$REPO" "$OSG_SERIES-$REPO-$(date +%Y%m%d-%H%M)"; do
58+
TIMESTAMP=$(date +%Y%m%d-%H%M)
59+
for image_tag in "$OSG_SERIES-$REPO" "$OSG_SERIES-$REPO-$TIMESTAMP"; do
5960
tag_list+=("$docker_repo":"$image_tag")
61+
if [[ $OSG_SERIES == '3.5' ]]; then
62+
tag_list+=("$docker_repo":"$REPO")
63+
tag_list+=("$docker_repo":"$REPO-$TIMESTAMP")
64+
fi
6065
done
6166
IFS=,
6267
echo "::set-output name=taglist::${tag_list[*]}"

0 commit comments

Comments
 (0)