From faba7b189d29113cd81f80355f6ca131316687c1 Mon Sep 17 00:00:00 2001 From: Donal Hurley Date: Fri, 8 Nov 2024 17:03:44 +0000 Subject: [PATCH] Fail release job if packages fail to publish. (#922) --- Makefile.packaging | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.packaging b/Makefile.packaging index 5dfed03bea..000ab6c1d8 100644 --- a/Makefile.packaging +++ b/Makefile.packaging @@ -212,5 +212,5 @@ gpg-key: ## Generate GPG public key .PHONY: release release: ## Publish tarball to the UPLOAD_URL echo "Publishing nginx-agent packages to ${UPLOAD_URL}"; \ - curl -XPOST -F "file=@$(PACKAGES_DIR)/$(TARBALL_NAME)" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \ - curl -XPOST -F "file=@$(GPG_PUBLIC_KEY)" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \ + curl -XPOST --fail -F "file=@$(PACKAGES_DIR)/$(TARBALL_NAME)" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \ + curl -XPOST --fail -F "file=@$(GPG_PUBLIC_KEY)" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \