mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
ci: use curl
It's installed by default in macOS unlike wget
This commit is contained in:
@@ -16,7 +16,7 @@ function install_consul() {
|
||||
fi
|
||||
fi
|
||||
|
||||
wget -q -O /tmp/consul.zip ${DOWNLOAD}
|
||||
curl -sSL --fail -o /tmp/consul.zip ${DOWNLOAD}
|
||||
|
||||
unzip -d /tmp /tmp/consul.zip
|
||||
mv /tmp/consul /usr/local/bin/consul
|
||||
|
||||
@@ -16,7 +16,7 @@ function install_vault() {
|
||||
fi
|
||||
fi
|
||||
|
||||
wget -q -O /tmp/vault.zip ${DOWNLOAD}
|
||||
curl -sSL --fail -o /tmp/vault.zip ${DOWNLOAD}
|
||||
|
||||
unzip -d /tmp /tmp/vault.zip
|
||||
mv /tmp/vault /usr/local/bin/vault
|
||||
|
||||
@@ -12,7 +12,7 @@ function install_cni() {
|
||||
return
|
||||
fi
|
||||
|
||||
wget -q -O /tmp/cni-plugins.tar.gz ${DOWNLOAD}
|
||||
curl -sSL --fail -o /tmp/cni-plugins.tar.gz ${DOWNLOAD}
|
||||
tar -xf /tmp/cni-plugins.tar.gz -C ${TARGET_DIR}
|
||||
touch ${TARGET_DIR}/${VERSION}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ function install_consul() {
|
||||
fi
|
||||
fi
|
||||
|
||||
wget -q -O /tmp/consul.zip ${DOWNLOAD}
|
||||
curl -sSL --fail -o /tmp/consul.zip ${DOWNLOAD}
|
||||
|
||||
unzip -d /tmp /tmp/consul.zip
|
||||
mv /tmp/consul /usr/bin/consul
|
||||
|
||||
@@ -9,7 +9,7 @@ apt-get install -y \
|
||||
vim
|
||||
|
||||
# Install Chrome for running tests (in headless mode)
|
||||
wget -qO- - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
||||
curl -sSL -o- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
||||
echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
|
||||
apt-get update
|
||||
apt-get install -y google-chrome-stable
|
||||
|
||||
@@ -10,7 +10,7 @@ function install_go() {
|
||||
return
|
||||
fi
|
||||
|
||||
wget -q -O /tmp/go.tar.gz ${download}
|
||||
curl -sSL --fail -o /tmp/go.tar.gz ${download}
|
||||
|
||||
tar -C /tmp -xf /tmp/go.tar.gz
|
||||
sudo mv /tmp/go /usr/local
|
||||
|
||||
@@ -14,7 +14,7 @@ function install_protoc() {
|
||||
fi
|
||||
|
||||
# Download
|
||||
wget -q -O /tmp/protoc.zip ${DOWNLOAD}
|
||||
curl -sSL --fail -o /tmp/protoc.zip ${DOWNLOAD}
|
||||
|
||||
# Unzip
|
||||
unzip /tmp/protoc.zip -d /tmp/protoc3
|
||||
|
||||
@@ -12,7 +12,7 @@ function install_vault() {
|
||||
fi
|
||||
fi
|
||||
|
||||
wget -q -O /tmp/vault.zip ${DOWNLOAD}
|
||||
curl -sSL --fail -o /tmp/vault.zip ${DOWNLOAD}
|
||||
|
||||
unzip -d /tmp /tmp/vault.zip
|
||||
mv /tmp/vault /usr/bin/vault
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Install NVM for simple node.js version management
|
||||
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
||||
curl -sSL --fail -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
||||
|
||||
# This enables NVM without a logout/login
|
||||
export NVM_DIR="/home/vagrant/.nvm"
|
||||
|
||||
Reference in New Issue
Block a user