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
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/webhook-bridge-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Webhook Bridge Release

on:
push:
branches:
- onelson/bridge

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
# FIXME: don't have a release name when running on a branch push - hardcode to 0.0.0 for now
run: |
export REPO="${{ secrets.DOCKERHUB_USERNAME }}/svix-webhook-bridge"
echo DOCKER_TAGS="$(echo "v0.0.0" | 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
1 change: 1 addition & 0 deletions webhook-bridge/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
1 change: 1 addition & 0 deletions webhook-bridge/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading