Upload to assets to GitHub

This commit is contained in:
Vidar Holen
2020-03-07 16:16:47 -08:00
parent 7b998239af
commit 9b66bc2f13
3 changed files with 62 additions and 4 deletions

View File

@@ -11,8 +11,8 @@ RUN set -x; \
if [ "${arch}" = 'armv7l' ]; then \
arch='armv6hf'; \
fi; \
url_base='https://shellcheck.storage.googleapis.com/'; \
tar_file="shellcheck-${tag}.linux.${arch}.tar.xz"; \
url_base='https://github.com/koalaman/shellcheck/releases/download/'; \
tar_file="${tag}/shellcheck-${tag}.linux.${arch}.tar.xz"; \
wget "${url_base}${tar_file}" -O - | tar xJf -; \
mv "shellcheck-${tag}/shellcheck" /bin/; \
rm -rf "shellcheck-${tag}"; \