From ee83bb263d07becb41ce8737a4f4311c2211523e Mon Sep 17 00:00:00 2001 From: Benjamin Date: Wed, 11 Dec 2024 16:47:49 -0600 Subject: [PATCH] add the fail flag to hide the body as well in case it contains the URL for some reason --- .github/scripts/deploy-registry.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/scripts/deploy-registry.sh b/.github/scripts/deploy-registry.sh index f7f8f73..bac8f03 100755 --- a/.github/scripts/deploy-registry.sh +++ b/.github/scripts/deploy-registry.sh @@ -26,10 +26,12 @@ done # DONT EVER SET ANY FLAGS THAT MIGHT PRINT THE URL, AS IT HAS SECRETS IN IT 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}" \ -H "Content-Type: application/json" \ --d '{}' +-d '{}' \ +--fail # Trigger a build for prod # DONT EVER SET ANY FLAGS THAT MIGHT PRINT THE URL, AS IT HAS SECRETS IN IT 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}" \ -H "Content-Type: application/json" \ --d '{}' \ No newline at end of file +-d '{}' \ +--fail \ No newline at end of file