From 6a6980f8ff30a1f4e3d427614b01c40a6d0d8e67 Mon Sep 17 00:00:00 2001 From: dhurley Date: Fri, 8 Nov 2024 15:46:46 +0000 Subject: [PATCH] Fail release job if packages fail to publish --- Makefile.packaging | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.packaging b/Makefile.packaging index c8c781986..000ab6c1d 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 --fail -XPOST -F "file=@$(PACKAGES_DIR)/$(TARBALL_NAME)" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \ - curl --fail -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}; \