From 21c4c64cded819a9f26a2e5e22c5b7af8b9e33d6 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sat, 5 Mar 2022 19:33:56 +0100 Subject: [PATCH] set tag --- pack-chrome.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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}"