Skip to content

Commit

Permalink
Add ghr package (#27)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
vadim-gleif authored and osterman committed Aug 7, 2018
1 parent 3827e98 commit af5cdeb
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ It's 100% Open Source and licensed under the [APACHE2](LICENSE).








## Usage

See all available packages:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 protected])](mailto:[email protected])

Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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/
Expand Down
3 changes: 3 additions & 0 deletions docs/targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions install/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit af5cdeb

Please sign in to comment.