File tree Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change 9
9
repo :
10
10
description : ' Input string that gets passed along to the docker build args'
11
11
required : true
12
- tag_list :
13
- description : ' List of comma-separated tags that gets passed along to the docker build args'
14
- required : false
15
- default : ' ' # set to an empty string
16
12
registry_url :
17
13
description : ' URL of the registry'
18
14
required : true
@@ -54,20 +50,15 @@ runs:
54
50
env :
55
51
REPO : ${{ inputs.repo }}
56
52
OSG_SERIES : ${{ inputs.osg_series }}
57
- run : |
58
- if [ -z "${{ inputs.tag_list }}" ]; then
59
- docker_repo=${GITHUB_REPOSITORY/opensciencegrid\/docker-/opensciencegrid/}
60
- tag_list=()
61
- for image_tag in "$REPO" "$REPO-$(date +%Y%m%d-%H%M)"; do
62
- tag_list=$docker_repo:$OSG_SERIES-$REPO,$docker_repo:$OSG_SERIES-$REPO-$(date +%Y%m%d-%H%M)
63
- done
64
- IFS=,
65
- echo "::set-output name=taglist::${tag_list[*]}"
66
- else
67
- tag_list=$(echo ${{ inputs.tag_list }} | sed -E "s/([^,]+)/${{ inputs.registry_url }}\/\1/g")
68
- echo "::set-output name=taglist::$tag_list"
69
- fi
70
53
shell : bash
54
+ run : |
55
+ docker_repo=opensciencegrid/${{ steps.generate-image-name.outputs.image }}
56
+ tag_list=()
57
+ for image_tag in "$REPO" "$REPO-$(date +%Y%m%d-%H%M)"; do
58
+ tag_list+=$docker_repo:$image_tag
59
+ done
60
+ IFS=,
61
+ echo "::set-output name=taglist::${tag_list[*]}"
71
62
72
63
- name : Import Docker images from cache
73
64
uses : actions/cache@v2
You can’t perform that action at this time.
0 commit comments