forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kargo.yaml
82 lines (73 loc) · 1.77 KB
/
kargo.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
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
80
81
82
package:
name: kargo
version: 1.1.1
epoch: 1
description: Application lifecycle orchestration
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- go
- node-gyp
- nodejs
- pnpm
environment:
CGO_ENABLED: "0"
pipeline:
- uses: git-checkout
with:
repository: https://github.com/akuity/kargo
tag: v${{package.version}}
expected-commit: d9932c7379444b0cc885c05fbc735f4495c65463
- runs: |
cd ui
pnpm install
NODE_ENV='production' pnpm run build
- uses: go/bump
with:
deps: golang.org/x/[email protected]
- uses: go/build
with:
packages: ./cmd/controlplane
output: kargo
ldflags: "-w -s -X github.com/akuity/kargo/internal/version.version=${{package.version}} -X github.com/akuity/kargo/internal/version.gitCommit=$(git rev-parse HEAD)"
- uses: strip
subpackages:
- name: kargo-oci-compat
description: OCI compatibility layer
dependencies:
runtime:
- kargo
- grpc-health-probe
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/local/bin
ln -sf /usr/bin/kargo ${{targets.subpkgdir}}/usr/local/bin/kargo
ln -sf /usr/bin/grpc-health-probe ${{targets.subpkgdir}}/usr/local/bin/grpc_health_probe
test:
pipeline:
- runs: |
grpc_health_probe --version
update:
enabled: true
ignore-regex-patterns:
- 'rc*'
- 'alpha'
github:
identifier: akuity/kargo
strip-prefix: v
use-tag: true
tag-filter: v
test:
pipeline:
- name: Verify kargo version
runs: |
kargo version
kargo --help
- name: Run a basic kargo command
runs: |
kargo help