open-nomad/.circleci/config/commands/install-consul.yml
Mahmood Ali 17059d0a1e ci: use curl
It's installed by default in macOS unlike wget
2020-03-23 13:27:58 -04:00

12 lines
379 B
YAML

parameters:
version:
type: string
default: 1.6.4
steps:
- run:
name: Install Consul << parameters.version >>
command: |
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*