From af5cdeb8376140ffeea428acce7780ccb5d4ca97 Mon Sep 17 00:00:00 2001 From: Vadim Hleif Date: Tue, 7 Aug 2018 05:54:20 +0300 Subject: [PATCH] Add ghr package (#27) * Add ghr package * Create different targets for darwin and linux * fix(ghr): Add generic target without OS * feat(ghr,README): add description for generic ghr target, update readme --- README.md | 22 +++++++++++++++++++--- docs/targets.md | 3 +++ install/Makefile | 18 ++++++++++++++++++ 3 files changed, 40 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 19fa9a728d..0b692322ff 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,11 @@ It's 100% Open Source and licensed under the [APACHE2](LICENSE). + + + + + ## Usage See all available packages: @@ -112,6 +117,9 @@ Available targets: cfssl Install cfssl - Cloudflare's PKI and TLS toolkit chamber Install Chamber to manage secrets with SSM+KMS fetch Install fetch to easily download files, folders, and release assets from a specific git commit, branch, or tag + ghr Install ghr to easily upload multiple artifacts to GitHub Release + ghr-darwin Install ghr to easily upload multiple artifacts to GitHub Release (Darwin) + ghr-linux Install ghr to easily upload multiple artifacts to GitHub Release (Linux) github-commenter Install github-commenter github-release Install github-release to create and edit releases on Github (and upload artifacts) gomplate Install gomplate @@ -154,11 +162,11 @@ Check out these related projects. File a GitHub [issue](https://github.com/cloudposse/packages/issues), send us an [email][email] or join our [Slack Community][slack]. -## Commerical Support +## Commercial Support Work directly with our team of DevOps experts via email, slack, and video conferencing. -We provide *commercial support* for all of our [Open Source][github] projects. As a *Dedicated Support* customer, you have access to our team of subject matter experts at a fraction of the cost of a fulltime engineer. +We provide [*commercial support*][commercial_support] for all of our [Open Source][github] projects. As a *Dedicated Support* customer, you have access to our team of subject matter experts at a fraction of the cost of a full-time engineer. [![E-Mail](https://img.shields.io/badge/email-hello@cloudposse.com-blue.svg)](mailto:hello@cloudposse.com) @@ -168,7 +176,7 @@ We provide *commercial support* for all of our [Open Source][github] projects. A - **Bug Fixes.** We'll rapidly work to fix any bugs in our projects. - **Build New Terraform Modules.** We'll develop original modules to provision infrastructure. - **Cloud Architecture.** We'll assist with your cloud strategy and design. -- **Implementation.** We'll provide hands on support to implement our reference architectures. +- **Implementation.** We'll provide hands-on support to implement our reference architectures. ## Community Forum @@ -226,6 +234,13 @@ See [LICENSE](LICENSE) for full details. under the License. + + + + + + + ## Trademarks All other trademarks referenced herein are the property of their respective owners. @@ -245,6 +260,7 @@ Check out [our other projects][github], [apply for a job][jobs], or [hire us][hi [docs]: https://docs.cloudposse.com/ [website]: https://cloudposse.com/ [github]: https://github.com/cloudposse/ + [commercial_support]: https://github.com/orgs/cloudposse/projects [jobs]: https://cloudposse.com/jobs/ [hire]: https://cloudposse.com/contact/ [slack]: https://slack.cloudposse.com/ diff --git a/docs/targets.md b/docs/targets.md index 5ac8092395..97e391b7f5 100644 --- a/docs/targets.md +++ b/docs/targets.md @@ -7,6 +7,9 @@ Available targets: cfssl Install cfssl - Cloudflare's PKI and TLS toolkit chamber Install Chamber to manage secrets with SSM+KMS fetch Install fetch to easily download files, folders, and release assets from a specific git commit, branch, or tag + ghr Install ghr to easily upload multiple artifacts to GitHub Release + ghr-darwin Install ghr to easily upload multiple artifacts to GitHub Release (Darwin) + ghr-linux Install ghr to easily upload multiple artifacts to GitHub Release (Linux) github-commenter Install github-commenter github-release Install github-release to create and edit releases on Github (and upload artifacts) gomplate Install gomplate diff --git a/install/Makefile b/install/Makefile index 0f87d690b6..b3614c6d92 100644 --- a/install/Makefile +++ b/install/Makefile @@ -204,6 +204,24 @@ export YQ_VERSION ?= 2.1.1 yq: $(call github_download_binary_release,mikefarah,$(YQ_VERSION),$@_$(OS)_$(ARCH)) +export GHR_VERSION ?= 0.10.1 +# Releases: https://github.com/tcnksm/ghr/releases +## Install ghr to easily upload multiple artifacts to GitHub Release (Darwin) +ghr-darwin: + $(CURL) -o - https://github.com/tcnksm/ghr/releases/download/v$(GHR_VERSION)/ghr_v$(GHR_VERSION)_darwin_$(ARCH).zip > $(INSTALL_PATH)/ghr.zip + unzip -p $(INSTALL_PATH)/ghr.zip */ghr > $(INSTALL_PATH)/ghr + rm $(INSTALL_PATH)/ghr.zip + chmod +x $(INSTALL_PATH)/ghr + +## Install ghr to easily upload multiple artifacts to GitHub Release (Linux) +ghr-linux: + $(CURL) -o - https://github.com/tcnksm/ghr/releases/download/v$(GHR_VERSION)/ghr_v$(GHR_VERSION)_linux_$(ARCH).tar.gz | tar --wildcards -zxO */ghr > $(INSTALL_PATH)/ghr + chmod +x $(INSTALL_PATH)/ghr + +## Install ghr to easily upload multiple artifacts to GitHub Release +ghr: ghr-$(OS) + @exit 0 + .PHONY : help help: @printf "Available targets:\n\n"