CyCoreSystems / go-meteor

Utilities for Meteor in Go
Apache License 2.0
7 stars 0 forks source link

Link to latest binary? #4

Closed kaihendry closed 5 years ago

kaihendry commented 5 years ago

Can quite figure it out: curl -LO https://github.com/CyCoreSystems/go-meteor/releases/latest/download/meteor-dockerfilegen_linux_amd64 is a 404

Don't want to install a Golang env in my https://github.com/unee-t/frontend/blob/master/buildspec.yml

kaihendry commented 5 years ago

Figured it out with thanks to #goreleaser on Gophers

curl -LO $(curl -s https://api.github.com/repos/CyCoreSystems/go-meteor/releases/latest | jq -r '.assets[] |  .browser_download_url | select(contains("_linux_"))')
Ulexus commented 5 years ago

Am I referencing that incorrect URL somewhere? The README links you to the Github Releases page, which has correct links.

kaihendry commented 5 years ago

Need a programmatic way if I am going to integrate this into my CI's buildspec.yml

Ulexus commented 5 years ago

The links for releases are predictable, but what you have is also fine.