Skip to content

Commit

Permalink
automatically fetch latest version via GitHub repo (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
smaeda-ks authored Apr 25, 2022
1 parent ccce780 commit 8e6aa98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ steps:
if [ ! "$PARAM_VAULT_VERSION" = "latest" ]; then
export VAULT_VER_STRING="$PARAM_VAULT_VERSION"
else
export VAULT_VER_STRING="$VAULT_VERSION_LATEST"
PARAM_VAULT_VERSION=$(basename $(curl -fs -o /dev/null -w %{redirect_url} https://github.com/hashicorp/vault/releases/latest) | sed 's/v//')
export VAULT_VER_STRING="$PARAM_VAULT_VERSION"
fi
echo "Installing Vault binary"
Expand Down Expand Up @@ -82,5 +83,4 @@ steps:
fi
environment:
PARAM_VAULT_VERSION: <<parameters.version>>
VAULT_VERSION_LATEST: 1.10.0
name: Install Vault binary - <<parameters.version>>

0 comments on commit 8e6aa98

Please sign in to comment.