From 8ee2e9876c03ee480dd4040219af1d500952bc1e Mon Sep 17 00:00:00 2001 From: Donal Hurley Date: Wed, 27 Nov 2024 14:35:58 +0000 Subject: [PATCH] Fail release job if packages fail to publish (#923) --- Makefile.packaging | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.packaging b/Makefile.packaging index ab5b7b7f46..e5421b103d 100644 --- a/Makefile.packaging +++ b/Makefile.packaging @@ -197,5 +197,5 @@ gpg-key: ## Generate GPG public key release: ## Publish tarball to the UPLOAD_URL echo "Publishing nginx-agent packages to ${UPLOAD_URL}"; \ - curl -XPOST -F "file=@$(PACKAGES_DIR)/${PACKAGE_PREFIX}.tar.gz" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \ - curl -XPOST -F "file=@$(GPG_PUBLIC_KEY)" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \ + curl -XPOST --fail -F "file=@$(PACKAGES_DIR)/${PACKAGE_PREFIX}.tar.gz" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \ + curl -XPOST --fail -F "file=@$(GPG_PUBLIC_KEY)" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \