-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathgitlab-logger.yaml
40 lines (34 loc) · 1.08 KB
/
gitlab-logger.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
package:
name: gitlab-logger
version: 3.0.0
epoch: 3
description: GitLab Logger provides a means of wrapping non-structured log files within structure JSON.
copyright:
- license: MIT
environment:
environment:
CGO_ENABLED: "0"
pipeline:
- uses: fetch
with:
# https://gitlab.com/gitlab-org/cloud-native/gitlab-logger
uri: https://gitlab.com/gitlab-org/cloud-native/gitlab-logger/-/archive/v${{package.version}}/gitlab-logger-v${{package.version}}.tar.gz
expected-sha256: b6bca21e3eba525334f4b140d9d9405181a25821365ccd9065402fa050af78d5
- uses: go/build
with:
packages: ./cmd/gitlab-logger
output: gitlab-logger
ldflags: -w
- uses: strip
subpackages:
- name: gitlab-logger-compat
dependencies:
runtime:
- gitlab-logger
pipeline:
- runs: |
# GitLab helm chart mostly hardcodes multiple executables path to /usr/local/bin/*
mkdir -p "${{targets.subpkgdir}}"/usr/local/bin
ln -s /usr/bin/gitlab-logger "${{targets.subpkgdir}}"/usr/local/bin/gitlab-logger
update:
enabled: false