Skip to content

chore: bump dependencies (#13) #18

chore: bump dependencies (#13)

chore: bump dependencies (#13) #18

Workflow file for this run

name: release
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
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@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: |
npm ci
npm run build
- name: Run semantic-release
id: semantic-release
uses: cycjimmy/semantic-release-action@v4
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@v3
with:
platforms: arm64,amd64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Node+Fastify Docker Image
id: docker_build
uses: docker/build-push-action@v5
with:
file: docker/Dockerfile.node-fastify
push: true
tags: supabase/orb-sync-engine:latest,supabase/orb-sync-engine:v${{ needs.release.outputs.new-release-version }}
platforms: linux/amd64,linux/arm64
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}