Skip to content

Commit

Permalink
Fail release job if packages fail to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurley committed Nov 8, 2024
1 parent 2a9548f commit 364ecb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.packaging
Original file line number Diff line number Diff line change
Expand Up @@ -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 --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}; \

0 comments on commit 364ecb3

Please sign in to comment.