forked from subquery/subql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Terra Support (subquery#781)
* update * add terra * remove header rule * terra * terra * terra * terra * terra * terra * terra * terra * Update indexerterra.manager.ts * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * add filters support * add filter * add filter * manifest v0.3.0 * dictionary * dictionary * dictionary * terrra * bug fix * refactor * Update README.md * clean up * add newline at end * add header * Update package.json * Update package.json * Update main.ts * Update package.json * Update main.ts * Update load.ts * add types-terra * Update model.ts * @subql/common split * add v0.3.0 support * code reuse * rebasing * Update yarn.lock * debug * rebase * Remove redundant sequalize types package from nodes * Update CI to include new packages * Fix types issue * Update tests to include new packages * Fix most tests * remove substrate specific tests from node-terra * rebase * Remove api from sandbox and allow unsafeApi * Add missing deps from cli * Improve code reuse * Remove unused function * Update copyright date header in ts files * validate terra manifest * refactor * add terra suppory in publish * sync latest node changes to node-terra * rebase * rebase * Fix duplicate import Co-authored-by: Scott Twiname <[email protected]> Co-authored-by: Ian He <[email protected]>
- Loading branch information
1 parent
d129548
commit 1c694fb
Showing
171 changed files
with
8,970 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: "Node-to-docker" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
isLatest: | ||
description: 'Add latest tag' | ||
default: 'true' | ||
require: true | ||
|
||
jobs: | ||
node-build-push-docker: | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 100 | ||
token: ${{ secrets.REPO_TOKEN }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: onfinality | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
## node | ||
- name: Get updated node version | ||
id: get-node-version | ||
run: | #TODO | ||
sh .github/workflows/scripts/nodeTerraVersion.sh | ||
- name: Build and push | ||
if: github.event.inputs.isLatest == 'false' | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
platforms: arm64,amd64 | ||
file: ./packages/node-terra/Dockerfile | ||
tags: onfinality/subql-node-terra:v${{ steps.get-node-version.outputs.NODE_VERSION }} | ||
build-args: RELEASE_VERSION=${{ steps.get-node-version.outputs.NODE_VERSION }} | ||
|
||
- name: Build and push | ||
if: github.event.inputs.isLatest == 'true' | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
platforms: arm64,amd64 | ||
file: ./packages/node-terra/Dockerfile | ||
tags: onfinality/subql-node-terra:v${{ steps.get-node-version.outputs.NODE_VERSION }},onfinality/subql-node-terra:latest | ||
build-args: RELEASE_VERSION=${{ steps.get-node-version.outputs.NODE_VERSION }} | ||
|
||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
PACKAGE_VERSION=$(cat ./packages/node-terra/package.json \ | ||
| grep version \ | ||
| head -1 \ | ||
| awk -F: '{ print $2 }' \ | ||
| sed 's/[",]//g' \ | ||
| tr -d '[[:space:]]') | ||
|
||
|
||
echo "::set-output name=NODE_VERSION::$PACKAGE_VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
**/.DS_Store | ||
*.ejs | ||
*.tgz | ||
*.cmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.