Skip to content
Snippets Groups Projects
Commit 66ddfa7a authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch '18-fix_download_yq' into 'master'

fix: install yq only if not found in image

Closes #18

See merge request to-be-continuous/semantic-release!23
parents 5b33b5e8 23041f1a
No related branches found
No related tags found
No related merge requests found
......@@ -452,10 +452,13 @@ stages:
}
function install_yd() {
yd_binary=$1
yd_version=$2
yd_url="https://github.com/mikefarah/yq/releases/download/${yd_version}/${yd_binary}.tar.gz"
wget "${yd_url}" -O - | tar xz && mv "${yd_binary}" /usr/bin/yq
if ! command -v yq > /dev/null
then
yd_binary=$1
yd_version=$2
yd_url="https://github.com/mikefarah/yq/releases/download/${yd_version}/${yd_binary}.tar.gz"
wget "${yd_url}" -O - | tar xz && mv "${yd_binary}" /usr/bin/yq
fi
}
function dotenv_semrel_info() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment