Skip to content

Commit f71735d

Browse files
committed
Add logic to append deprecated tags for OSG 3.5 containers
1 parent 6968940 commit f71735d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ inputs:
2525

2626
runs:
2727
using: "composite"
28+
strategy:
29+
matrix:
30+
deprecated_repo: [release, testing, development]
2831
steps:
2932
- uses: actions/checkout@v2
3033

@@ -51,12 +54,18 @@ runs:
5154
REPO: ${{ inputs.repo }}
5255
OSG_SERIES: ${{ inputs.osg_series }}
5356
REGISTRY: ${{ inputs.registry_url}}
57+
DEPRECATED_REPO: ${{ matrix.deprecated_repo }}
5458
shell: bash
5559
run: |
5660
docker_repo="$REGISTRY/opensciencegrid/${{ steps.generate-image-name.outputs.image }}"
5761
tag_list=()
5862
for image_tag in "$OSG_SERIES-$REPO" "$OSG_SERIES-$REPO-$(date +%Y%m%d-%H%M)"; do
5963
tag_list+=("$docker_repo":"$image_tag")
64+
if [[ $OSG_SERIES == '3.5' ]]; then
65+
for deprecated_tag in "$OSG_SERIES-$DEPRECATED_REPO" "$OSG_SERIES-$DEPRECATED_REPO-$(date +%Y%m%d-%H%M)"; do
66+
tag_list+=("$docker_repo":"$deprecated_tag")
67+
done
68+
fi
6069
done
6170
IFS=,
6271
echo "::set-output name=taglist::${tag_list[*]}"

0 commit comments

Comments
 (0)