-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding VersionStream for loki-3.2 (#29127)
Signed-off-by: Mark McCormick <[email protected]> Co-authored-by: octo-sts[bot] <[email protected]> Co-authored-by: Mark McCormick <[email protected]>
- Loading branch information
1 parent
d499a31
commit 311ba81
Showing
1 changed file
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
package: | ||
name: loki-3.2 | ||
version: 3.2.0 | ||
epoch: 1 | ||
description: Like Prometheus, but for logs. | ||
copyright: | ||
- license: AGPL-3.0-or-later | ||
dependencies: | ||
provides: | ||
- loki=${{package.full-version}} | ||
|
||
environment: | ||
contents: | ||
packages: | ||
- build-base | ||
- busybox | ||
- ca-certificates-bundle | ||
- go | ||
|
||
pipeline: | ||
- uses: git-checkout | ||
with: | ||
expected-commit: 659f5421dde1dc4b27d6a0afd1a568673f50dfcc | ||
repository: https://github.com/grafana/loki | ||
tag: v${{package.version}} | ||
|
||
- uses: autoconf/make | ||
|
||
- runs: | | ||
mkdir -p ${{targets.contextdir}}/usr/bin | ||
mv cmd/loki/loki ${{targets.contextdir}}/usr/bin/loki | ||
# Add the default config | ||
mkdir -p ${{targets.contextdir}}/etc/loki | ||
mv cmd/loki/loki-local-config.yaml ${{targets.contextdir}}/etc/loki/local-config.yaml | ||
- uses: strip | ||
|
||
subpackages: | ||
- name: ${{package.name}}-logcli | ||
pipeline: | ||
- runs: | | ||
mkdir -p ${{targets.contextdir}}/usr/bin | ||
mv cmd/logcli/logcli ${{targets.contextdir}}/usr/bin/logcli | ||
dependencies: | ||
provides: | ||
- logcli=${{package.full-version}} | ||
test: | ||
pipeline: | ||
- runs: | | ||
logcli --version | ||
- name: ${{package.name}}-promtail | ||
pipeline: | ||
- runs: | | ||
mkdir -p ${{targets.contextdir}}/usr/bin | ||
mv clients/cmd/promtail/promtail ${{targets.contextdir}}/usr/bin/promtail | ||
mkdir -p ${{targets.contextdir}}/etc/promtail | ||
mv clients/cmd/promtail/promtail-local-config.yaml ${{targets.contextdir}}/etc/promtail/config.yml | ||
dependencies: | ||
provides: | ||
- promtail=${{package.full-version}} | ||
test: | ||
pipeline: | ||
- runs: | | ||
promtail --version | ||
- name: ${{package.name}}-loki-canary | ||
pipeline: | ||
- runs: | | ||
mkdir -p ${{targets.contextdir}}/usr/bin | ||
mv cmd/loki-canary/loki-canary ${{targets.contextdir}}/usr/bin/loki-canary | ||
dependencies: | ||
provides: | ||
- loki-canary=${{package.full-version}} | ||
test: | ||
pipeline: | ||
- runs: | | ||
loki-canary --version | ||
update: | ||
enabled: true | ||
github: | ||
identifier: grafana/loki | ||
strip-prefix: v | ||
tag-filter: v3.2 | ||
|
||
test: | ||
pipeline: | ||
- runs: | | ||
loki --version |