Skip to content

Commit 8e6aa98

Browse files
authored
automatically fetch latest version via GitHub repo (#6)
1 parent ccce780 commit 8e6aa98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ steps:
3535
if [ ! "$PARAM_VAULT_VERSION" = "latest" ]; then
3636
export VAULT_VER_STRING="$PARAM_VAULT_VERSION"
3737
else
38-
export VAULT_VER_STRING="$VAULT_VERSION_LATEST"
38+
PARAM_VAULT_VERSION=$(basename $(curl -fs -o /dev/null -w %{redirect_url} https://github.com/hashicorp/vault/releases/latest) | sed 's/v//')
39+
export VAULT_VER_STRING="$PARAM_VAULT_VERSION"
3940
fi
4041
4142
echo "Installing Vault binary"
@@ -82,5 +83,4 @@ steps:
8283
fi
8384
environment:
8485
PARAM_VAULT_VERSION: <<parameters.version>>
85-
VAULT_VERSION_LATEST: 1.10.0
8686
name: Install Vault binary - <<parameters.version>>

0 commit comments

Comments
 (0)