Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/docker/build-push-…
Browse files Browse the repository at this point in the history
…action-5
  • Loading branch information
bufdev authored Oct 13, 2023
2 parents efa141c + ef489be commit 853d355
Show file tree
Hide file tree
Showing 42 changed files with 1,893 additions and 1,102 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ jobs:
# not have any CGO and care should be taken in the Dockerfile to ensure
# that go cross compilation happens on the build platform.
- name: setup-qemu
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
id: qemu
with:
# alpine image doesn't support linux/riscv64
platforms: linux/386,linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x
- name: setup-docker-buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: login-docker
uses: docker/login-action@v2
with:
Expand Down
47 changes: 28 additions & 19 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@0914d50df753bbc42180d982a6550f195390069f
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{env.APP_ID}}
private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }}
Expand Down Expand Up @@ -87,11 +87,12 @@ jobs:
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@0914d50df753bbc42180d982a6550f195390069f
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{env.APP_ID}}
private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }}
repository: ${{ github.repository }}
repositories: >-
[ ${{ github.repository }} ]
permissions: >-
{"contents": "write"}
- name: Set VERSION variable from tag
Expand All @@ -116,11 +117,12 @@ jobs:
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@0914d50df753bbc42180d982a6550f195390069f
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{env.APP_ID}}
private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }}
repository: ${{ github.repository }}
repositories: >-
[ ${{ github.repository }} ]
permissions: >-
{"contents": "write", "pull_requests": "write"}
- name: Checkout repository code
Expand Down Expand Up @@ -165,11 +167,12 @@ jobs:
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@0914d50df753bbc42180d982a6550f195390069f
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{env.APP_ID}}
private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }}
repository: ${{ github.repository }}
repositories: >-
[ ${{ github.repository }} ]
permissions: >-
{"contents": "write", "pull_requests": "write"}
- name: Checkout repository code
Expand Down Expand Up @@ -208,11 +211,12 @@ jobs:
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@0914d50df753bbc42180d982a6550f195390069f
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{secrets.BUF_MAVEN_PUBLISH_APP_ID}}
private_key: ${{ secrets.BUF_MAVEN_PUBLISH_APP_PRIVATE_KEY }}
repository: "bufbuild/buf-maven-publish"
repositories: >-
[ "bufbuild/buf-maven-publish" ]
permissions: >-
{"actions": "write"}
- name: trigger maven update
Expand All @@ -235,11 +239,12 @@ jobs:
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@0914d50df753bbc42180d982a6550f195390069f
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{secrets.BUF_NPM_PUBLISH_RELEASE_APP_ID}}
private_key: ${{ secrets.BUF_NPM_PUBLISH_RELEASE_APP_PRIVATE_KEY }}
repository: "bufbuild/buf-npm-publish"
repositories: >-
[ "bufbuild/buf-npm-publish" ]
permissions: >-
{"actions": "write"}
- name: trigger npm publish
Expand All @@ -262,11 +267,12 @@ jobs:
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@0914d50df753bbc42180d982a6550f195390069f
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{secrets.HOMEBREW_RELEASE_APP_ID}}
private_key: ${{ secrets.HOMEBREW_RELEASE_APP_PRIVATE_KEY }}
repository: "bufbuild/homebrew-buf"
repositories: >-
[ "bufbuild/homebrew-buf" ]
permissions: >-
{"actions": "write"}
- name: trigger homebrew-buf release
Expand All @@ -289,11 +295,12 @@ jobs:
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@0914d50df753bbc42180d982a6550f195390069f
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{secrets.VIM_BUF_RELEASE_APP_ID}}
private_key: ${{ secrets.VIM_BUF_RELEASE_APP_PRIVATE_KEY }}
repository: "bufbuild/vim-buf"
repositories: >-
[ "bufbuild/vim-buf" ]
permissions: >-
{"actions": "write"}
- name: trigger vim-buf release
Expand All @@ -316,11 +323,12 @@ jobs:
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@0914d50df753bbc42180d982a6550f195390069f
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{secrets.BUF_BUILD_RELEASE_APP_ID}}
private_key: ${{ secrets.BUF_BUILD_RELEASE_APP_PRIVATE_KEY }}
repository: "bufbuild/buf.build"
repositories: >-
[ "bufbuild/buf.build" ]
permissions: >-
{"actions": "write"}
- name: trigger buf.build release
Expand All @@ -343,11 +351,12 @@ jobs:
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@0914d50df753bbc42180d982a6550f195390069f
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{secrets.BUF_SETUP_ACTION_RELEASE_APP_ID}}
private_key: ${{ secrets.BUF_SETUP_ACTION_RELEASE_APP_PRIVATE_KEY }}
repository: "bufbuild/buf-setup-action"
repositories: >-
[ "bufbuild/buf-setup-action" ]
permissions: >-
{"actions": "write"}
- name: trigger buf-setup-action release
Expand Down
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

## [Unreleased]

- Update `buf beta price` with the latest pricing information.
- No changes yet.

## [v1.27.0] - 2023-10-04

- Fix issue where `buf generate --exclude-path` was not properly excluding paths
for remote modules.
- Fix issue where `buf curl` had a user agent that did not properly place the
extension as a suffix.
- Update `buf beta price` with the latest pricing information.

## [v1.26.1] - 2023-08-09

Expand Down Expand Up @@ -954,7 +960,8 @@ buf check breaking proto --against .git#branch=master,subdir=proto

Initial beta release.

[Unreleased]: https://github.com/bufbuild/buf/compare/v1.26.1...HEAD
[Unreleased]: https://github.com/bufbuild/buf/compare/v1.27.0...HEAD
[v1.27.0]: https://github.com/bufbuild/buf/compare/v1.26.1...v1.27.0
[v1.26.1]: https://github.com/bufbuild/buf/compare/v1.26.0...v1.26.1
[v1.26.0]: https://github.com/bufbuild/buf/compare/v1.25.1...v1.26.0
[v1.25.1]: https://github.com/bufbuild/buf/compare/v1.25.0...v1.25.1
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.buf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ARG TARGETARCH
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
go build -ldflags "-s -w" -trimpath -buildvcs=false -o /go/bin/buf ./cmd/buf

FROM --platform=${TARGETPLATFORM} alpine:3.18.3
FROM --platform=${TARGETPLATFORM} alpine:3.18.4

RUN apk add --update --no-cache \
ca-certificates \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.workspace
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ RUN apk add --update --no-cache \
rm -rf /var/cache/apk/*

RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.31-r0/glibc-2.31-r0.apk && \
apk add --no-cache glibc-2.31-r0.apk && \
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-2.35-r1.apk && \
apk add --no-cache glibc-2.35-r1.apk && \
rm -rf /var/cache/apk/*

COPY go.mod go.sum /workspace/
Expand Down
24 changes: 12 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ require (
github.com/google/go-cmp v0.5.9
github.com/google/go-containerregistry v0.16.1
github.com/jdx/go-netrc v1.0.0
github.com/jhump/protoreflect v1.15.2
github.com/klauspost/compress v1.16.7
github.com/jhump/protoreflect v1.15.3
github.com/klauspost/compress v1.17.0
github.com/klauspost/pgzip v1.2.6
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
github.com/pkg/profile v1.7.0
github.com/rs/cors v1.10.0
github.com/rs/cors v1.10.1
github.com/spf13/cobra v1.7.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.4
github.com/tetratelabs/wazero v1.5.0
go.opentelemetry.io/otel v1.17.0
go.opentelemetry.io/otel/sdk v1.17.0
go.opentelemetry.io/otel/trace v1.17.0
go.opentelemetry.io/otel v1.19.0
go.opentelemetry.io/otel/sdk v1.19.0
go.opentelemetry.io/otel/trace v1.19.0
go.uber.org/atomic v1.11.0
go.uber.org/multierr v1.11.0
go.uber.org/zap v1.25.0
go.uber.org/zap v1.26.0
golang.org/x/crypto v0.13.0
golang.org/x/exp v0.0.0-20230905200255-921286631fa9
golang.org/x/mod v0.12.0
Expand All @@ -43,12 +43,12 @@ require (
require (
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/benbjohnson/clock v1.3.5 // indirect
github.com/containerd/stargz-snapshotter/estargz v0.14.3 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/distribution/reference v0.5.0 // indirect
github.com/docker/cli v24.0.6+incompatible // indirect
github.com/docker/distribution v2.8.2+incompatible // indirect
github.com/docker/distribution v2.8.3+incompatible // indirect
github.com/docker/docker-credential-helpers v0.8.0 // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.5.0 // indirect
Expand All @@ -57,19 +57,19 @@ require (
github.com/go-logr/stdr v1.2.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/pprof v0.0.0-20230906154834-20cde9067b3b // indirect
github.com/google/pprof v0.0.0-20230926050212-f7f687d19a98 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/moby/term v0.5.0 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0-rc4 // indirect
github.com/opencontainers/image-spec v1.1.0-rc5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/vbatts/tar-split v0.11.5 // indirect
go.opentelemetry.io/otel/metric v1.17.0 // indirect
go.opentelemetry.io/otel/metric v1.19.0 // indirect
golang.org/x/sys v0.12.0 // indirect
golang.org/x/text v0.13.0 // indirect
)
Loading

0 comments on commit 853d355

Please sign in to comment.