Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNM: kinesis support for bridge #924

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
add docker publish for webhook-bridge
svix-onelson committed May 8, 2023
commit 0c0e14b1cc1a0aeb0dc016f7261ed2625f6ac61c
38 changes: 38 additions & 0 deletions .github/workflows/webhook-bridge-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Webhook Bridge Release

on:
release:
types: [published]

jobs:
docker:
name: release docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Setup QEMU
uses: docker/setup-qemu-action@v2

- name: Login Docker
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Derive Version Numbers
run: |
export REPO="${{ secrets.DOCKERHUB_USERNAME }}/svix-webhook-bridge"
echo DOCKER_TAGS="$(echo "${{ github.event.release.tag_name }}" | sed -E "s#v([0-9]+)\.([0-9]+)\.([0-9]+)#${REPO}:latest,${REPO}:v\1.\2.\3,${REPO}:v\1.\2,${REPO}:v\1#")" >> "$GITHUB_ENV"
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./webhook-bridge
file: ./webhook-bridge/Dockerfile
push: true
tags: ${{ env.DOCKER_TAGS }}
platforms: linux/amd64