diff --git a/pack-chrome.sh b/pack-chrome.sh index 6e0fbb4..f7cd3b7 100755 --- a/pack-chrome.sh +++ b/pack-chrome.sh @@ -4,6 +4,13 @@ temp_name=$(head -c 20 /dev/random | xxd -p | tr -dc a-f0-9) temp_dir="/tmp/${temp_name}" chrome_dir="${temp_dir}/chrome" +if [[ ! -n "${DRONE_TAG}" ]] +then + export DRONE_TAG=$(git describe --abbrev=0 | tr -dc v0-9) +fi + +rm "${dir}/out" + mkdir -p "${temp_dir}/out" mkdir -p "${chrome_dir}"