-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
circleci-orb.yml
44 lines (40 loc) · 1.16 KB
/
circleci-orb.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: 2.1
description: "orb for lambroll"
orbs:
detect: circleci/os-detect@0.1
commands:
install:
description: "install lambroll"
parameters:
version:
description: lambroll version
type: string
default: v1.0.1
steps:
- detect/init
- run:
name: "Install lambroll"
command: |
mkdir -p /tmp/lambroll-<< parameters.version >>
cd /tmp/lambroll-<< parameters.version >>
DIRNAME=lambroll_<< parameters.version >>_${OSD_FAMILY}_amd64
FILENAME=${DIRNAME}.tar.gz
LAMBROLL_URL=https://github.com/fujiwara/lambroll/releases/download/<< parameters.version >>/${FILENAME}
curl -sL $LAMBROLL_URL > ${FILENAME}
tar zxvf ${FILENAME}
sudo install lambroll /usr/local/bin
examples:
install_lambroll:
description: Easily install lambroll command
usage:
version: 2.1
orbs:
lambroll: fujiwara/lambroll@x.y
jobs:
lambroll_example:
steps:
- checkout
- lambroll/install
- run:
command: |
lambroll deploy