-
Notifications
You must be signed in to change notification settings - Fork 11
/
escape.yml
79 lines (71 loc) · 1.75 KB
/
escape.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: escape
version: 0.28.@
description: |
The Escape client. This release includes the source and one binary for
Linux/AMD64. For full documentation see https://escape.ankyra.io/docs/
logo: logo.png
depends:
- escape-core-latest as core
extends:
- extension-golang-binary-latest
inputs:
- id: package_name
default: "github.com/ankyra/escape"
visible: false
- id: binary_name
default: "escape"
visible: false
- id: escape_go_dependencies
type: list[string]
default:
- _/escape-core:github.com/ankyra/escape-core
- id: build_command
default: "go build -v -o escape && mkdir -p docs/cmd && go run docs/generate_cmd_docs.go"
visible: false
- id: test_command
default: "go test -cover -v $(/usr/local/go/bin/go list ./... | grep -v docs )"
visible: false
- id: copy_files_after_build
visible: false
default:
- "docs/cmd:docs/cmd"
- "docs/generated:docs/generated"
includes:
- escape
- LICENSE
- README.md
- Makefile
- main.go
- cmd/
- controllers/
- model/
- util/
- vendor/
- docs/
- testing/
errands:
publish_binaries:
script: scripts/publish-binaries.sh
description: Create binaries for all supported platforms and upload to a GCS bucket
inputs:
- id: bucket
description: The target bucket
default: ""
- id: credentials
description: Google Cloud Storage service account credentials (json)
default: ""
- id: escape_version
default: $this.version
visible: false
- id: do_upload
type: bool
default: true
description: |
Should this errand upload to GCS? If not, then this errand will only
build the binaries.
build_templates:
- file: util/metadata.go.tpl
mapping:
version: $this.version
pre_build: scripts/clean.sh
activate_provider: activate.sh