Skip to content

Commit

Permalink
Adding VersionStream for loki-3.2 (#29127)
Browse files Browse the repository at this point in the history
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
3 people authored Sep 23, 2024
1 parent d499a31 commit 311ba81
Showing 1 changed file with 92 additions and 0 deletions.
92 changes: 92 additions & 0 deletions loki-3.2.yaml
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

0 comments on commit 311ba81

Please sign in to comment.