-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
55 lines (49 loc) · 1.25 KB
/
Taskfile.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
45
46
47
48
49
50
51
52
53
54
55
version: "3"
includes:
test:
dir: ./provider/cmd/tests/
taskfile: ./provider/cmd/tests/TestTasks.yml
env:
versionNumber:
sh: cat schema.json | jq -r '.version'
tasks:
sdk:
desc: Generates SDKs
cmds:
- make generate
sources:
- provider/cmd/pulumi-resource-nuage/nuage_provider/*.py
- provider/cmd/pulumi-resource-nuage/requirements.txt
- schema.json
generates:
- sdk/**/*
build:
desc: Build binaries for each SDK
deps:
- sdk
cmds:
- echo $versionNumber > provider/cmd/pulumi-resource-nuage/nuage_provider/VERSION
- make build
# - make install
sources:
- sdk/**/*
generates:
- bin/**/*
- provider/cmd/pulumi-resource-nuage/build/**/*
- provider/cmd/pulumi-resource-nuage/nuage_provider.egg-info/*
distribute:
desc: Create Distribution
deps:
- build
cmds:
- make dist
install-local:
desc: Install Project locally
deps:
- distribute
vars:
IMAGE_NAME: $(sh DetectPlatformName.sh)
cmds:
- make install
- pulumi plugin rm resource nuage -y
- pulumi plugin install resource nuage ${versionNumber} --file dist/pulumi-resource-nuage-v${versionNumber}-{{.IMAGE_NAME}}.tar.gz