-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathknative-client.yaml
45 lines (40 loc) · 1.09 KB
/
knative-client.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
package:
name: knative-client
version: 1.17.0
epoch: 3
description: Knative CLI implementation
dependencies:
provides:
- kn=${{package.full-version}}
copyright:
- license: Apache-2.0
pipeline:
- uses: git-checkout
with:
repository: https://github.com/knative/client
tag: knative-v${{package.version}}
expected-commit: f73472454667de171935724b3e2f2ee219398cf8
- uses: go/bump
with:
deps: |-
golang.org/x/oauth2@v0.27.0
golang.org/x/net@v0.36.0
- uses: go/build
with:
packages: ./cmd/kn/main.go
ldflags: |
-X knative.dev/client/pkg/commands/version.Version=v${{package.version}}
-X knative.dev/client/pkg/commands/version.GitRevision=$(git rev-parse --short HEAD)
-X knative.dev/client/pkg/commands/version.BuildDate="$(date -u '+%Y-%m-%d-%H:%M:%S')"
output: kn
update:
enabled: true
github:
identifier: knative/client
strip-prefix: knative-v
test:
pipeline:
- name: kn version and help
runs: |
kn version | grep ${{package.version}}
kn --help