Skip to content

Commit f1e5510

Browse files
committed
Fix deprecated tags generation
Fix deprecated tags generation
1 parent a7d637a commit f1e5510

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

action.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,16 @@ runs:
5151
REPO: ${{ inputs.repo }}
5252
OSG_SERIES: ${{ inputs.osg_series }}
5353
REGISTRY: ${{ inputs.registry_url}}
54-
DEPRECATED_REPO: ${{ matrix.deprecated_repo }}
5554
shell: bash
5655
run: |
5756
docker_repo="$REGISTRY/opensciencegrid/${{ steps.generate-image-name.outputs.image }}"
5857
tag_list=()
59-
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
6060
tag_list+=("$docker_repo":"$image_tag")
6161
if [[ $OSG_SERIES == '3.5' ]]; then
62-
tag_list+=("$docker_repo":"$OSG_SERIES-release")
63-
tag_list+=("$docker_repo":"$OSG_SERIES-testing")
64-
tag_list+=("$docker_repo":"$OSG_SERIES-development")
65-
tag_list+=("$docker_repo":"$OSG_SERIES-release-$(date +%Y%m%d-%H%M)")
66-
tag_list+=("$docker_repo":"$OSG_SERIES-testing-$(date +%Y%m%d-%H%M)")
67-
tag_list+=("$docker_repo":"$OSG_SERIES-development-$(date +%Y%m%d-%H%M)")
62+
tag_list+=("$docker_repo":"$REPO")
63+
tag_list+=("$docker_repo":"$REPO-$TIMESTAMP")
6864
fi
6965
done
7066
IFS=,

0 commit comments

Comments
 (0)