File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 164
164
165
165
for version in " ${versions[@]} " ; do
166
166
rcVersion=" ${version% -rc} "
167
+ export version rcVersion
167
168
channel=' stable'
168
169
169
170
versionOptions=" $( grep " ^$rcVersion [.]" <<< " $dockerVersions" ) "
@@ -174,14 +175,17 @@ for version in "${versions[@]}"; do
174
175
channel=' test'
175
176
fi
176
177
177
- fullVersion=" $( grep $rcGrepV -E -- ' -(rc|tp|beta)' <<< " $versionOptions" | tail -1) "
178
- if [ -z " $fullVersion " ]; then
178
+ if ! fullVersion=" $( grep $rcGrepV -E -- ' -(rc|tp|beta)' <<< " $versionOptions" | tail -1) " || [ -z " $fullVersion " ]; then
179
+ if currentNull=" $( jq -r ' .[env.version] == null' versions.json) " && [ " $currentNull " = ' true' ]; then
180
+ echo >&2 " warning: skipping '$version ' (does not appear to be released yet)"
181
+ json=" $( jq <<< " $json" -c ' .[env.version] = null' ) "
182
+ continue
183
+ fi
179
184
echo >&2 " error: cannot find full version for $version "
180
185
exit 1
181
186
fi
182
187
183
188
# if this is a "-rc" release, let's make sure the release it contains isn't already GA (and thus something we should not publish anymore)
184
- export version rcVersion
185
189
if [ " $rcVersion " != " $version " ] && rcFullVersion=" $( jq <<< " $json" -r ' .[env.rcVersion].version // ""' ) " && [ -n " $rcFullVersion " ]; then
186
190
latestVersion=" $( { echo " $fullVersion " ; echo " $rcFullVersion " ; } | sort -V | tail -1) "
187
191
if [[ " $fullVersion " == " $rcFullVersion " * ]] || [ " $latestVersion " = " $rcFullVersion " ]; then
You can’t perform that action at this time.
0 commit comments