Skip to content

Commit

Permalink
Fail release job if packages fail to publish (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurley authored Nov 27, 2024
1 parent 20ee4e8 commit 8ee2e98
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 @@ -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}; \

0 comments on commit 8ee2e98

Please sign in to comment.