Skip to content

Commit

Permalink
Dynmically read latest goss release
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBaeumer committed Mar 7, 2019
1 parent cf7dc00 commit c7b143b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
language: go

env:
- GO111MODULE=on
- CC_TEST_REPORTER_ID=e0a73033ac8d1dfa04a23fdf69f14e0c6875bf07ab37c83d72ab60bf4913cbcb
global:
- GO111MODULE=on
- CC_TEST_REPORTER_ID=e0a73033ac8d1dfa04a23fdf69f14e0c6875bf07ab37c83d72ab60bf4913cbcb

stages:
- security
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ This will install goss and [dgoss](https://github.com/SimonBaeumer/goss/tree/mas

```bash
# Install latest version to /usr/local/bin
curl -fsSL https://goss.rocks/install | sh
curl -fsSL https://raw.githubusercontent.com/SimonBaeumer/goss/add-coverage/install.sh | sh

# Install v0.3.6 version to ~/bin
curl -fsSL https://goss.rocks/install | GOSS_VER=v0.3.6 GOSS_DST=~/bin sh
# Install v0.4.0 version to ~/bin
curl -fsSL https://raw.githubusercontent.com/SimonBaeumer/goss/add-coverage/install.sh | GOSS_VER=v0.4.0 GOSS_DST=~/bin sh
```

### Manual installation
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
set -e

LATEST="v0.3.6"
LATEST=LATEST=$(curl -s https://api.github.com/repos/SimonBaeumer/goss/releases/latest | jq -r .tag_name)
DGOSS_VER=$GOSS_VER

if [ -z "$GOSS_VER" ]; then
Expand Down

0 comments on commit c7b143b

Please sign in to comment.