Skip to content

Commit 09ba474

Browse files
release: disable promotion criteria validation (#132)
1 parent 7a63fbf commit 09ba474

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

release.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -278,25 +278,25 @@ promoteToPublic:
278278
echo "🚢 Please check the associated CI build to ensure the process completed".
279279
finalize:
280280
steps:
281-
- name: 'validate promotion criteria'
282-
cmd: |
283-
echo "validating promotion criteria"
284-
body=$(wget --content-on-error -O- --header="Content-Type: application/json" "https://releaseregistry.sourcegraph.com/v1/releases/k8s/{{version}}")
285-
exit_code=$?
281+
# - name: 'validate promotion criteria'
282+
# cmd: |
283+
# echo "validating promotion criteria"
284+
# body=$(wget --content-on-error -O- --header="Content-Type: application/json" "https://releaseregistry.sourcegraph.com/v1/releases/k8s/{{version}}")
285+
# exit_code=$?
286286

287-
if [ $exit_code != 0 ]; then
288-
echo "❌ Failed to fetch release on release registry, got:"
289-
echo "--- raw body ---"
290-
echo $body
291-
echo "--- raw body ---"
292-
exit $exit_code
293-
fi
287+
# if [ $exit_code != 0 ]; then
288+
# echo "❌ Failed to fetch release on release registry, got:"
289+
# echo "--- raw body ---"
290+
# echo $body
291+
# echo "--- raw body ---"
292+
# exit $exit_code
293+
# fi
294294

295-
is_development=$(echo "$body" | jq -r '.is_development')
296-
if [ "$is_development" = "true" ]; then
297-
echo "cannot promote a development release"
298-
exit 1
299-
fi
295+
# is_development=$(echo "$body" | jq -r '.is_development')
296+
# if [ "$is_development" = "true" ]; then
297+
# echo "cannot promote a development release"
298+
# exit 1
299+
# fi
300300
- name: git:tag
301301
cmd: |
302302
set -eu

0 commit comments

Comments
 (0)