Skip to content

fix: pass in backfillRelatedEntities flag in sync routes (#94) #87

fix: pass in backfillRelatedEntities flag in sync routes (#94)

fix: pass in backfillRelatedEntities flag in sync routes (#94) #87

Workflow file for this run

name: release
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
release:
name: Release / Node ${{ matrix.node }}
strategy:
matrix:
node:
- '18'
runs-on: ubuntu-22.04
outputs:
new-release-published: ${{ steps.semantic-release.outputs.new_release_published }}
new-release-version: ${{ steps.semantic-release.outputs.new_release_version }}
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: |
npm clean-install
npm run build
- name: Run semantic-release
id: semantic-release
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 19
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker:
name: Release on Docker Hub
needs:
- release
if: needs.release.outputs.new-release-published == 'true'
runs-on: ubuntu-22.04
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64,amd64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
push: true
tags: supabase/stripe-sync-engine:latest,supabase/stripe-sync-engine:v${{ needs.release.outputs.new-release-version }}
platforms: linux/amd64,linux/arm64
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}