File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,12 @@ if [ $QUIET = true ]; then
88
88
)
89
89
fi
90
90
91
+ date_str=$( date --utc +%Y%m%d)
91
92
for image in " ${IMAGES[@]} " ; do
92
93
image_dir=" $PROJECT_ROOT /images/$image "
93
94
image_file=" ${TAG} .Dockerfile"
94
95
image_ref=" codercom/enterprise-$image :$TAG "
96
+ image_ref_date=" ${image_ref} -${date_str} "
95
97
image_path=" $image_dir /$image_file "
96
98
97
99
if [ ! -f " $image_path " ]; then
@@ -103,5 +105,6 @@ for image in "${IMAGES[@]}"; do
103
105
104
106
build_id=$( cat " build_${image} .json" | jq -r .\[\" depot.build\"\] .buildID)
105
107
run_trace $DRY_RUN depot push --project " gb3p8xrshk" --tag " $image_ref " " $build_id "
108
+ run_trace $DRY_RUN depot push --project " gb3p8xrshk" --tag " $image_ref_date " " $build_id "
106
109
run_trace $DRY_RUN depot push --project " gb3p8xrshk" --tag " codercom/enterprise-${image} :latest" " $build_id "
107
110
done
You can’t perform that action at this time.
0 commit comments