forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glab.yaml
48 lines (42 loc) · 1.04 KB
/
glab.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
# source is gitlab so we can't use github updates to get expected commit
# let's still auto create the PR, it will fail as expected commit will be wrong
# however it will be easy to fix
#nolint:git-checkout-must-use-github-updates
package:
name: glab
version: 1.50.0
epoch: 1
description: A GitLab CLI tool bringing GitLab to your command line
copyright:
- license: MIT
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
pipeline:
- uses: git-checkout
with:
repository: https://gitlab.com/gitlab-org/cli
tag: v${{package.version}}
expected-commit: 2f23daa519be7cdd2562255235f6b1ad0da1931d
- uses: go/bump
with:
deps: golang.org/x/[email protected]
- uses: go/build
with:
packages: ./cmd/glab
output: glab
ldflags: -s -w -X main.version=v${{package.version}}
update:
enabled: true
git:
strip-prefix: v
tag-filter-prefix: v
test:
pipeline:
- name: Version Check
runs: |
glab version
glab --version
glab --help