Browse Source

add support for buf (#10112)

* add support for buf

Co-authored-by: Alex McKinney <alexmckinney01@gmail.com>
Signed-off-by: Rémy Léone <rleone@scaleway.com>
pull/10306/head
Rémy Léone 3 years ago committed by GitHub
parent
commit
4cc18b1109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      .github/workflows/buf.yml
  2. 10
      prompb/buf.lock
  3. 4
      prompb/buf.yaml

20
.github/workflows/buf.yml

@ -0,0 +1,20 @@
on:
push:
branches:
- main
jobs:
steps:
- uses: actions/checkout@v2
- uses: bufbuild/buf-setup-action@v0.6.0
- uses: bufbuild/buf-lint-action@v1
with:
input: 'prompb'
- uses: bufbuild/buf-breaking-action@v1
with:
input: 'prompb'
against: 'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD~1,subdir=prompb'
- uses: bufbuild/buf-push-action@v1
with:
input: 'prompb'
buf_token: ${{ secrets.BUF_TOKEN }}

10
prompb/buf.lock

@ -0,0 +1,10 @@
# Generated by buf. DO NOT EDIT.
version: v1
deps:
- remote: buf.build
owner: gogo
repository: protobuf
branch: main
commit: 4df00b267f944190a229ce3695781e99
digest: b1-sjLgsg7CzrkOrIjBDh3s-l0aMjE6oqTj85-OsoopKAw=
create_time: 2021-08-10T00:14:28.345069Z

4
prompb/buf.yaml

@ -0,0 +1,4 @@
version: v1
name: buf.build/prometheus/prometheus
deps:
- buf.build/gogo/protobuf
Loading…
Cancel
Save