Skip to content

Commit

Permalink
upgrade to latest substreams-sink
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Nov 18, 2023
1 parent a14b115 commit 56ae749
Show file tree
Hide file tree
Showing 13 changed files with 182 additions and 760 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/bun-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Generate standalone Bun executable
on:
release:
types: [published]

permissions:
contents: write

jobs:
build-and-push-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install
- run: bun run test
- run: bun run build
- uses: softprops/action-gh-release@v1
with:
files: |
substreams-sink-webhook
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml → .github/workflows/bun-test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: CI
name: Bun Test

on: push

jobs:
build:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install
- run: bun test
- run: bun run test
19 changes: 0 additions & 19 deletions .github/workflows/npm.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/sea.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ cursor.lock
docker-compose.yml
*-linux
*-macos
*-win.exe
*-win.exe
substreams-sink-webhook
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
FROM node:alpine

EXPOSE 9102

COPY package*.json ./
RUN npm ci
FROM oven/bun
COPY . .
RUN npm run build

ENTRYPOINT ["npm", "start"]
RUN bun install
ENTRYPOINT [ "bun", "./bin/cli.ts" ]
Loading

0 comments on commit 56ae749

Please sign in to comment.