Skip to content

Commit

Permalink
feat: add dataset info
Browse files Browse the repository at this point in the history
  • Loading branch information
mo4islona committed Oct 10, 2024
1 parent d91ff27 commit ae5a527
Show file tree
Hide file tree
Showing 12 changed files with 621 additions and 219 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: docker
on:
workflow_dispatch: # manually run
inputs:
tag:
description: image tag
required: true

env:
CI: true
Expand All @@ -20,32 +16,27 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- uses: SebRollen/[email protected]
id: read_toml
with:
file: 'Cargo.toml'
field: 'package.version'

- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build query gateway
uses: docker/build-push-action@v5
with:
context: .
load: true
tags: subsquid/query-gateway:test
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Get query gateway version
run: echo "GATEWAY_VERSION=$(docker run --rm subsquid/query-gateway:test subsquid-query-gateway --version | cut -d ' ' -f2)" >> $GITHUB_ENV

- name: Build & publish query gateway
uses: docker/build-push-action@v5
env:
VERSION: ${{ steps.read_toml.outputs.value }}
with:
context: .
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/386
push: true
tags: |
subsquid/query-gateway:${{ env.GATEWAY_VERSION }}
subsquid/query-gateway:${{ inputs.tag }}
subsquid/sqd-portal:${{ env.VERSION }}
cache-from: type=gha
cache-to: type=gha,mode=max
21 changes: 18 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sqd-portal"
version = "0.1.0"
version = "0.2.1"
edition = "2021"

[dependencies]
Expand All @@ -16,7 +16,7 @@ itertools = "0.12"
lazy_static = "1.4.0"
parking_lot = "0.12"
prometheus-client = "0.22"
reqwest = { version = "0.12.7", features = ["stream", "gzip"] }
reqwest = { version = "0.12.7", features = ["stream", "gzip", "json"] }
scopeguard = "1.2"
semver = "1"
serde = { version = "1", features = ["derive"] }
Expand All @@ -31,6 +31,7 @@ tokio-util = "0.7.11"
tracing = { version = "0.1", features = ["async-await"] }
tracing-futures = { version = "0.2.5", features = ["tokio", "futures-03"] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json"] }
tower-http = { version = "0.6.1", features = ["cors"] }
uuid = { version = "1", features = ["v4", "fast-rng"] }

sqd-contract-client = { git = "https://github.com/subsquid/sqd-network.git", version = "1.0.7" }
Expand Down
Loading

0 comments on commit ae5a527

Please sign in to comment.