From ed9995c24d5cc0d8a648a16c6313bcbbdf679956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Tue, 26 Feb 2019 18:03:42 +0100 Subject: [PATCH] enable variable override --- .s2i/bin/assemble | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.s2i/bin/assemble b/.s2i/bin/assemble index 5b7ae65..a5d35d2 100644 --- a/.s2i/bin/assemble +++ b/.s2i/bin/assemble @@ -3,9 +3,9 @@ # Exit on any error set -e -hugo_version=0.54.0 -hugo_bin_name=hugo_${hugo_version}_Linux-64bit.tar.gz -hugo_bin_url=https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/${hugo_bin_name} +hugo_version=${HUGO_VERSION:-0.54.0} +hugo_bin_name=${HUGO_BIN_NAME:-hugo_${hugo_version}_Linux-64bit.tar.gz} +hugo_bin_url=${HUGO_BIN_URL:-https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/${hugo_bin_name}} # Download Hugo curl -s -o "/tmp/${hugo_bin_name}" -L "${hugo_bin_url}"