Commit 8883c878 authored by ale's avatar ale

Use curl to download restic in CI script

parent c743d426
Pipeline #1121 failed with stages
in 25 seconds
......@@ -11,6 +11,7 @@ test:
stage: test
image: "ai/test:go"
script:
- "apt-get install -qy curl"
- "./install_restic_for_tests.sh"
- "go-test-runner ."
except:
......@@ -30,6 +31,7 @@ build:pkg:
stage: build_pkg
image: "ai/build:stretch"
script:
- "apt-get install -qy curl"
- "./install_restic_for_tests.sh"
- "build-dsc"
dependencies:
......
......@@ -16,7 +16,7 @@ DOWNLOAD_URL="https://github.com/restic/restic/releases/download/v${RESTIC_VERSI
set -e
wget -O- -nv "${DOWNLOAD_URL}" | bunzip2 -c > /usr/bin/restic
curl -s "${DOWNLOAD_URL}" | bunzip2 -c > /usr/bin/restic
chmod +x /usr/bin/restic
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment