-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathkuberay-operator.yaml
52 lines (45 loc) · 1.23 KB
/
kuberay-operator.yaml
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
package:
name: kuberay-operator
version: 1.0.0
epoch: 1
description: A toolkit to run Ray applications on Kubernetes
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- git
- go
pipeline:
- uses: git-checkout
with:
expected-commit: 1add258fcfd5c83319428355c0af4dde60ea9047
repository: https://github.com/ray-project/kuberay.git
tag: v${{package.version}}
- uses: go/build
with:
modroot: ray-operator
packages: .
output: manager
ldflags: -X 'main._buildTime_=$(date "+%F %T")' -X 'main._commitId_=$(git rev-parse HEAD)'
- uses: strip
subpackages:
- name: kuberay-operator-compat
description: "Compatibility package to place binaries in the location expected by upstream helm charts"
pipeline:
- runs: |
# The helm chart expects the kuberay-operator binaries to be in / instead of /usr/bin
mkdir -p "${{targets.subpkgdir}}"
ln -sf /usr/bin/manager ${{targets.subpkgdir}}/manager
update:
enabled: true
github:
identifier: ray-project/kuberay
strip-prefix: v
tag-filter: v1.0.0
test:
pipeline:
- runs: |
/usr/bin/manager --version