Skip to content

Commit 3cd783b

Browse files
committed
feat: add block-proxy service and nb-blocks-proxy package
1 parent 4166d0b commit 3cd783b

File tree

34 files changed

+5898
-32
lines changed

34 files changed

+5898
-32
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build Block Proxy
2+
on:
3+
push:
4+
branches: ['main', 'docker/block-proxy']
5+
paths:
6+
- 'apps/block-proxy/**'
7+
- '.github/workflows/block-proxy-build.yaml'
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: docker/setup-buildx-action@v3
14+
- uses: docker/login-action@v3
15+
with:
16+
registry: ghcr.io
17+
username: ${{ github.actor }}
18+
password: ${{ secrets.GITHUB_TOKEN }}
19+
- uses: docker/build-push-action@v5
20+
with:
21+
context: .
22+
file: apps/block-proxy/Dockerfile
23+
platforms: linux/amd64
24+
push: true
25+
provenance: false
26+
tags: |
27+
ghcr.io/nearblocks/block-proxy:latest
28+
ghcr.io/nearblocks/block-proxy:${{ github.sha }}
29+
cache-from: type=registry,ref=ghcr.io/nearblocks/block-proxy:latest
30+
cache-to: type=inline

0 commit comments

Comments
 (0)