@@ -26,6 +26,13 @@ inputs:
26
26
description : ' Name of image, including the organization (e.g. "opensciencegrid/image")'
27
27
required : false
28
28
default : ' '
29
+ timestamp_tag :
30
+ description : >-
31
+ Timestamped tag name (e.g.,
32
+ "opensciencegrid/osgvo-docker-pilot3.6-release-YYYYMMDD-hhmm")
33
+ used to pass the Dockerfile as $TIMESTAMP_TAG
34
+ required : false
35
+ default : ' '
29
36
30
37
runs :
31
38
using : " composite"
@@ -60,11 +67,17 @@ runs:
60
67
REPO : ${{ inputs.repo }}
61
68
OSG_SERIES : ${{ inputs.osg_series }}
62
69
REGISTRY : ${{ inputs.registry_url}}
70
+ TIMESTAMP_TAG : ${{ inputs.timestamp_tag }}
63
71
shell : bash
64
72
run : |
65
73
docker_repo="$REGISTRY/${{ steps.generate-image-name.outputs.image }}"
66
74
tag_list=()
67
- TIMESTAMP=$(date +%Y%m%d-%H%M)
75
+ if [[ -n $TIMESTAMP_TAG ]]; then
76
+ # grab the YYYYMMDD-hhmm timestamp
77
+ TIMESTAMP=${TIMESTAMP_TAG: -13}
78
+ else
79
+ TIMESTAMP=$(date +%Y%m%d-%H%M)
80
+ fi
68
81
for image_tag in "$OSG_SERIES-$REPO" "$OSG_SERIES-$REPO-$TIMESTAMP"; do
69
82
tag_list+=("$docker_repo":"$image_tag")
70
83
if [[ $OSG_SERIES == '3.5' ]]; then
99
112
build-args : |
100
113
BASE_YUM_REPO=${{ inputs.repo }}
101
114
BASE_OSG_SERIES=${{ inputs.osg_series }}
115
+ TIMESTAMP_TAG=${{ inputs.timestamp_tag }}
102
116
tags : " ${{ steps.generate-tag-list.outputs.taglist }}"
103
117
cache-from : type=local,src=/tmp/.buildx-cache
104
118
0 commit comments