mirror of
https://github.com/repo-runner/debian-node.git
synced 2024-11-09 14:20:04 +00:00
Fix: Download jq before using it
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
f3f3c4ce39
commit
72f3f7aa9c
1 changed files with 4 additions and 4 deletions
8
build.sh
8
build.sh
|
@ -12,16 +12,16 @@ apt-get install -y --no-install-recommends \
|
||||||
git \
|
git \
|
||||||
make
|
make
|
||||||
|
|
||||||
|
# Download recent release of jq
|
||||||
|
curl -sSfLo /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
|
||||||
|
chmod 0755 /usr/local/bin/jq
|
||||||
|
|
||||||
# Download latest release of inner-runner
|
# Download latest release of inner-runner
|
||||||
DOWNLOAD=$(curl -sSfL https://api.github.com/repos/repo-runner/repo-runner/releases/latest |
|
DOWNLOAD=$(curl -sSfL https://api.github.com/repos/repo-runner/repo-runner/releases/latest |
|
||||||
jq -r '.assets | .[] | select(.name == "inner-runner_linux_amd64.tar.gz") | .browser_download_url')
|
jq -r '.assets | .[] | select(.name == "inner-runner_linux_amd64.tar.gz") | .browser_download_url')
|
||||||
curl -sSfL "${DOWNLOAD}" | tar -xzf - -C /usr/local/bin
|
curl -sSfL "${DOWNLOAD}" | tar -xzf - -C /usr/local/bin
|
||||||
mv /usr/local/bin/inner-runner* /usr/local/bin/inner-runner
|
mv /usr/local/bin/inner-runner* /usr/local/bin/inner-runner
|
||||||
|
|
||||||
# Download recent release of jq
|
|
||||||
curl -sSfLo /usr/local/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
|
|
||||||
chmod 0755 /usr/local/bin/jq
|
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
apt-get autoremove --purge -y
|
apt-get autoremove --purge -y
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
Loading…
Reference in a new issue