ci: use curl
It's installed by default in macOS unlike wget
This commit is contained in:
parent
4f6a2cf65c
commit
17059d0a1e
|
@ -45,13 +45,13 @@ jobs:
|
|||
name: install protoc
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/consul.zip
|
||||
rm -rf /tmp/consul*
|
||||
name: Install Consul 1.6.4
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/vault.zip
|
||||
rm -rf /tmp/vault*
|
||||
name: Install Vault 1.2.4
|
||||
|
@ -129,13 +129,13 @@ jobs:
|
|||
name: install protoc
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/consul.zip
|
||||
rm -rf /tmp/consul*
|
||||
name: Install Consul 1.6.4
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/vault.zip
|
||||
rm -rf /tmp/vault*
|
||||
name: Install Vault 1.2.4
|
||||
|
@ -213,13 +213,13 @@ jobs:
|
|||
name: install protoc
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/consul.zip
|
||||
rm -rf /tmp/consul*
|
||||
name: Install Consul 1.6.4
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/vault.zip
|
||||
rm -rf /tmp/vault*
|
||||
name: Install Vault 1.2.4
|
||||
|
@ -297,13 +297,13 @@ jobs:
|
|||
name: install protoc
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/consul.zip
|
||||
rm -rf /tmp/consul*
|
||||
name: Install Consul 1.6.4
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/vault.zip
|
||||
rm -rf /tmp/vault*
|
||||
name: Install Vault 1.2.4
|
||||
|
@ -381,13 +381,13 @@ jobs:
|
|||
name: install protoc
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/consul.zip
|
||||
rm -rf /tmp/consul*
|
||||
name: Install Consul 1.6.4
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/vault.zip
|
||||
rm -rf /tmp/vault*
|
||||
name: Install Vault 1.2.4
|
||||
|
@ -551,13 +551,13 @@ jobs:
|
|||
name: install protoc
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/consul.zip
|
||||
rm -rf /tmp/consul*
|
||||
name: Install Consul 1.6.4
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/vault.zip
|
||||
rm -rf /tmp/vault*
|
||||
name: Install Vault 1.2.4
|
||||
|
@ -621,13 +621,13 @@ jobs:
|
|||
name: install protoc
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/consul.zip
|
||||
rm -rf /tmp/consul*
|
||||
name: Install Consul 1.6.4
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/vault.zip
|
||||
rm -rf /tmp/vault*
|
||||
name: Install Vault 1.2.4
|
||||
|
@ -739,13 +739,13 @@ jobs:
|
|||
name: install protoc
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/consul.zip
|
||||
rm -rf /tmp/consul*
|
||||
name: Install Consul 1.6.4
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/vault.zip
|
||||
rm -rf /tmp/vault*
|
||||
name: Install Vault 1.2.4
|
||||
|
@ -883,13 +883,13 @@ jobs:
|
|||
name: install protoc
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/consul.zip https://releases.hashicorp.com/consul/1.6.4/consul_1.6.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/consul.zip
|
||||
rm -rf /tmp/consul*
|
||||
name: Install Consul 1.6.4
|
||||
- run:
|
||||
command: |
|
||||
wget -q -O /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/vault.zip https://releases.hashicorp.com/vault/1.2.4/vault_1.2.4_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/vault.zip
|
||||
rm -rf /tmp/vault*
|
||||
name: Install Vault 1.2.4
|
||||
|
|
|
@ -6,6 +6,6 @@ steps:
|
|||
- run:
|
||||
name: Install Consul << parameters.version >>
|
||||
command: |
|
||||
wget -q -O /tmp/consul.zip https://releases.hashicorp.com/consul/<< parameters.version >>/consul_<< parameters.version >>_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/consul.zip https://releases.hashicorp.com/consul/<< parameters.version >>/consul_<< parameters.version >>_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/consul.zip
|
||||
rm -rf /tmp/consul*
|
||||
|
|
|
@ -6,6 +6,6 @@ steps:
|
|||
- run:
|
||||
name: Install Vault << parameters.version >>
|
||||
command: |
|
||||
wget -q -O /tmp/vault.zip https://releases.hashicorp.com/vault/<< parameters.version >>/vault_<< parameters.version>>_linux_amd64.zip
|
||||
curl -SL --fail -o /tmp/vault.zip https://releases.hashicorp.com/vault/<< parameters.version >>/vault_<< parameters.version>>_linux_amd64.zip
|
||||
sudo unzip -d /usr/local/bin /tmp/vault.zip
|
||||
rm -rf /tmp/vault*
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue