Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit ee83bb2

Browse files
committed
add the fail flag to hide the body as well in case it contains the URL for some reason
1 parent 374e8de commit ee83bb2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/scripts/deploy-registry.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ done
2626
# DONT EVER SET ANY FLAGS THAT MIGHT PRINT THE URL, AS IT HAS SECRETS IN IT
2727
curl -X POST "https://cloudbuild.googleapis.com/v1/projects/coder-registry-1/triggers/http-build-registry-v2-dev:webhook?key=${GCLOUD_API_KEY}&secret=${GCLOUD_DEV_DEPLOY_SECRET}" \
2828
-H "Content-Type: application/json" \
29-
-d '{}'
29+
-d '{}' \
30+
--fail
3031

3132
# Trigger a build for prod
3233
# DONT EVER SET ANY FLAGS THAT MIGHT PRINT THE URL, AS IT HAS SECRETS IN IT
3334
curl -X POST "https://cloudbuild.googleapis.com/v1/projects/coder-registry-1/triggers/http-build-registry-v2-trigger:webhook?key=${GCLOUD_API_KEY}&secret=${GCLOUD_PROD_DEPLOY_SECRET}" \
3435
-H "Content-Type: application/json" \
35-
-d '{}'
36+
-d '{}' \
37+
--fail

0 commit comments

Comments
 (0)