File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: 'Push Container Action'
3
3
description : ' Push built images to Docker Hub/OSG Harbor'
4
4
5
5
inputs :
6
+ osg_series :
7
+ description : ' OSG release series used to install packages'
8
+ required : true
6
9
repo :
7
10
description : ' Input string that gets passed along to the docker build args'
8
11
required : true
@@ -29,12 +32,13 @@ runs:
29
32
id : generate-tag-list
30
33
env :
31
34
REPO : ${{ inputs.repo }}
35
+ OSG_SERIES : ${{ inputs.osg_series }}
32
36
run : |
33
37
if [ -z "${{ inputs.tag_list }}" ]; then
34
38
docker_repo=${GITHUB_REPOSITORY/opensciencegrid\/docker-/opensciencegrid/}
35
39
tag_list=()
36
40
for image_tag in "$REPO" "$REPO-$(date +%Y%m%d-%H%M)"; do
37
- tag_list+=("${{ inputs.registry_url }}/$ docker_repo":"$image_tag" )
41
+ tag_list=$docker_repo:$OSG_SERIES-$REPO,$ docker_repo:$OSG_SERIES-$REPO-$(date +%Y%m%d-%H%M )
38
42
done
39
43
IFS=,
40
44
echo "::set-output name=taglist::${tag_list[*]}"
58
62
59
63
with :
60
64
push : true
61
- build-args : BASE_YUM_REPO=${{ inputs.repo }}
65
+ build-args : |
66
+ BASE_YUM_REPO=${{ inputs.repo }}
67
+ BASE_OSG_SERIES=${{ inputs.osg_series }}
62
68
tags : " ${{ steps.generate-tag-list.outputs.taglist }}"
63
69
cache-from : type=local,src=/tmp/.buildx-cache
64
-
70
+
You can’t perform that action at this time.
0 commit comments