build in different folder
This commit is contained in:
parent
14664e3bc6
commit
597b75cbe8
@ -15,6 +15,6 @@ steps:
|
|||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
base_url: https://git.purser.it
|
base_url: https://git.purser.it
|
||||||
title: ${DRONE_TAG}
|
title: ${DRONE_TAG}
|
||||||
files: chrome.crx
|
files: proxy-stream-${DRONE_TAG}.crx
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
@ -3,6 +3,8 @@ dir=$(dirname $(realpath $0))
|
|||||||
temp_name=$(head -c 20 /dev/random | xxd -p | tr -dc a-f0-9)
|
temp_name=$(head -c 20 /dev/random | xxd -p | tr -dc a-f0-9)
|
||||||
temp_dir="/tmp/${temp_name}"
|
temp_dir="/tmp/${temp_name}"
|
||||||
chrome_dir="${temp_dir}/chrome"
|
chrome_dir="${temp_dir}/chrome"
|
||||||
|
|
||||||
|
mkdir -p "${temp_dir}/out"
|
||||||
mkdir -p "${chrome_dir}"
|
mkdir -p "${chrome_dir}"
|
||||||
|
|
||||||
if [[ "${CHROME_PRIVKEY}test" == "test" ]]
|
if [[ "${CHROME_PRIVKEY}test" == "test" ]]
|
||||||
@ -34,6 +36,8 @@ then
|
|||||||
browser=$(which chromium 2> /dev/null)
|
browser=$(which chromium 2> /dev/null)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${browser} --disable-gpu --no-sandbox --user-data-dir=${chrome_dir} --pack-extension="${dir}/chrome" --pack-extension-key="${temp_dir}/privkey.pem"
|
cp "${dir}/chrome" "${temp_dir}/out/proxy-stream-${DRONE_TAG}"
|
||||||
|
|
||||||
|
${browser} --disable-gpu --no-sandbox --user-data-dir=${chrome_dir} --pack-extension="${temp_dir}/out/proxy-stream-${DRONE_TAG}" --pack-extension-key="${temp_dir}/privkey.pem"
|
||||||
|
|
||||||
rm -rf ${temp_dir}
|
rm -rf ${temp_dir}
|
||||||
|
Loading…
Reference in New Issue
Block a user