diff options
author | Valery Piashchynski <[email protected]> | 2022-09-29 20:18:57 +0200 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2022-09-29 20:18:57 +0200 |
commit | 07610e3545c6c4f8dff2b7a936cec5c637c10954 (patch) | |
tree | a78d3310ec9de033ea71c25dfc6b4e80c80820f2 | |
parent | a44d751e00f6eeaf7c3d8c374cfc976391f54c5d (diff) |
feat: release v2.11.3v2.11.3-rc.1
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r-- | .github/workflows/release_grpc.yml | 8 | ||||
-rw-r--r-- | .github/workflows/release_grpc_buf.yml | 38 |
2 files changed, 42 insertions, 4 deletions
diff --git a/.github/workflows/release_grpc.yml b/.github/workflows/release_grpc.yml index c93c7b0c..b3204661 100644 --- a/.github/workflows/release_grpc.yml +++ b/.github/workflows/release_grpc.yml @@ -58,7 +58,7 @@ jobs: run: sudo apt-get install -y musl-tools - name: Download dependencies - run: go mod download + run: cd protoc_plugins && go mod download - name: Generate builder values id: values @@ -89,9 +89,9 @@ jobs: LDFLAGS: >- -s run: | - go build -trimpath -ldflags "$LDFLAGS" -o "./${{ steps.values.outputs.binary-name }}" protoc_plugins/protoc-gen-php-grpc/main.go - stat "./${{ steps.values.outputs.binary-name }}" - gpg --detach-sign --armor "./${{ steps.values.outputs.binary-name }}" + cd protoc_plugins && go build -trimpath -ldflags "$LDFLAGS" -o "../${{ steps.values.outputs.binary-name }}" protoc-gen-php-grpc/main.go + stat "../${{ steps.values.outputs.binary-name }}" + gpg --detach-sign --armor "../${{ steps.values.outputs.binary-name }}" - name: Generate distributive directory name id: dist-dir diff --git a/.github/workflows/release_grpc_buf.yml b/.github/workflows/release_grpc_buf.yml new file mode 100644 index 00000000..1e333706 --- /dev/null +++ b/.github/workflows/release_grpc_buf.yml @@ -0,0 +1,38 @@ +name: release_grpc_buf + +on: + release: # Docs: <https://help.github.com/en/articles/events-that-trigger-workflows#release-event-release> + types: + - prereleased + - released + +jobs: + build: + name: BSR build + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest ] + steps: + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: Check out code + uses: actions/checkout@v3 + with: + repository: 'roadrunner-server/grpc' + ref: 'master' + + - name: Generate builder values + id: values + run: | + echo "::set-output name=version::`echo ${GITHUB_REF##*/} | sed -e 's/*//'`" + + - name: Build image + run: | + echo ${{ secrets.BSR_TOKEN }} | docker login -u roadrunner-server plugins.buf.build --password-stdin + docker build . -f protoc_plugins/Dockerfile -t plugins.buf.build/roadrunner/protoc-gen-php-grpc:${{ steps.values.outputs.version }} --build-arg "APP_VERSION=${{ steps.values.outputs.version }}" + docker push plugins.buf.build/roadrunner/protoc-gen-php-grpc:${{ steps.values.outputs.version }} |