-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop_eip1559' into develop
- Loading branch information
Showing
50 changed files
with
1,786 additions
and
357 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
name: RpcNode | ||
on: | ||
push: | ||
tags: | ||
- '*-RPCNode' | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
platform: [scalable] | ||
runs-on: ${{ matrix.platform }} | ||
env: | ||
ENV: release | ||
PRIVATE_ECR_URL: 358484141435.dkr.ecr.us-west-2.amazonaws.com | ||
PUBLIC_ECR_URL: public.ecr.aws/k6m5b6e2 | ||
DOCKERHUB_URL: findoranetwork | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
components: rustfmt | ||
|
||
|
||
- name: Prepare key | ||
shell: bash | ||
run: | | ||
tar -C ~/.ssh -zcf key.tar.gz ./ | ||
- name: Clean garbage containers and images | ||
shell: bash | ||
run: | | ||
docker rm $(docker ps -a | grep -v "^CONTAINER" | awk '{print $1}') || true | ||
docker rmi -f $(docker images -f "dangling=true" -q) || true | ||
- name: Build rust base image | ||
shell: bash | ||
run: | | ||
make ci_build_binary_rust_base | ||
- name: Build binary image | ||
env: | ||
GITHUB_CONTEXT: ${{ toJSON(github) }} | ||
shell: bash | ||
run: | | ||
echo "REF: ${GITHUB_REF}" | ||
TAGS=$(grep "refs/tags" <<< ${GITHUB_REF}) || true | ||
TAGV="${TAGS#refs/tags/}" | ||
export IMAGE_TAG="${TAGV:-main}" | ||
export VERGEN_SHA_EXTERN="${IMAGE_TAG}" | ||
echo "Image tag: ${IMAGE_TAG}" | ||
make ci_build_release_web3_binary_image | ||
- name: Build images | ||
env: | ||
PRIVATE_ECR_URL: ${{ env.PRIVATE_ECR_URL }} | ||
PUBLIC_ECR_URL: ${{ env.PUBLIC_ECR_URL }} | ||
ENV: release | ||
shell: bash | ||
run: | | ||
echo "REF: ${GITHUB_REF}" | ||
TAGS=$(grep "refs/tags" <<< ${GITHUB_REF}) || true | ||
TAGV="${TAGS#refs/tags/}" | ||
export IMAGE_TAG="${TAGV:-main}" | ||
echo "Image tag: ${IMAGE_TAG}" | ||
make ci_build_image_web3 | ||
- name: Login ECR | ||
env: | ||
PUBLIC_ECR_URL: ${{ env.PUBLIC_ECR_URL }} | ||
shell: bash | ||
run: | | ||
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${PUBLIC_ECR_URL} | ||
- name: Push images | ||
env: | ||
PRIVATE_ECR_URL: ${{ env.PRIVATE_ECR_URL }} | ||
PUBLIC_ECR_URL: ${{ env.PUBLIC_ECR_URL }} | ||
ENV: release | ||
shell: bash | ||
run: | | ||
echo "REF: ${GITHUB_REF}" | ||
TAGS=$(grep "refs/tags" <<< ${GITHUB_REF}) || true | ||
TAGV="${TAGS#refs/tags/}" | ||
export IMAGE_TAG="${TAGV:-main}" | ||
echo "Image tag: ${IMAGE_TAG}" | ||
make ci_push_image | ||
- name: Clean images | ||
env: | ||
PRIVATE_ECR_URL: ${{ env.PRIVATE_ECR_URL }} | ||
PUBLIC_ECR_URL: ${{ env.PUBLIC_ECR_URL }} | ||
ENV: release | ||
shell: bash | ||
run: | | ||
echo "REF: ${GITHUB_REF}" | ||
TAGS=$(grep "refs/tags" <<< ${GITHUB_REF}) || true | ||
TAGV="${TAGS#refs/tags/}" | ||
export IMAGE_TAG="${TAGV:-main}" | ||
echo "Image tag: ${IMAGE_TAG}" | ||
make clean_image | ||
- name: Clean binary images | ||
env: | ||
GITHUB_CONTEXT: ${{ toJSON(github) }} | ||
shell: bash | ||
run: | | ||
echo "REF: ${GITHUB_REF}" | ||
TAGS=$(grep "refs/tags" <<< ${GITHUB_REF}) || true | ||
TAGV="${TAGS#refs/tags/}" | ||
export IMAGE_TAG="${TAGV:-main}" | ||
echo "Image tag: ${IMAGE_TAG}" | ||
make clean_binary_dockerhub | ||
- name: Clean garbage | ||
shell: bash | ||
run: | | ||
rm -rf /tmp/*>/dev/null 2>&1 || true |
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
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.