summaryrefslogtreecommitdiff
path: root/.github/workflows/release_grpc_buf.yml
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-09-29 23:37:40 +0200
committerGitHub <[email protected]>2022-09-29 23:37:40 +0200
commitf851d4b364456a5da960bbb0370cf6e24cb9f449 (patch)
treefb840fc1b3e86efcfd53a6d9ce128f5dc15fe65d /.github/workflows/release_grpc_buf.yml
parenta44d751e00f6eeaf7c3d8c374cfc976391f54c5d (diff)
parent2bdb23423382636195ec900d2f8b76e0afaf41bb (diff)
[#1310]: feat: release `v2.11.3`v2.11.3
Diffstat (limited to '.github/workflows/release_grpc_buf.yml')
-rw-r--r--.github/workflows/release_grpc_buf.yml38
1 files changed, 38 insertions, 0 deletions
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 }}