-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Polkadot v1.2. to v1.4 upgrade
- Loading branch information
1 parent
8001950
commit b78a37e
Showing
112 changed files
with
25,796 additions
and
20,720 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
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,50 @@ | ||
name: ECR | ||
|
||
on: | ||
push: | ||
branches: | ||
- berlin-hackaton | ||
|
||
env: | ||
PROFILE: release | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
concurrency: dev | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Cache cargo registry | ||
uses: actions/cache@v3 | ||
continue-on-error: false | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-cargo- | ||
- name: Configure AWS credentials ORG | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.ORG_AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.ORG_AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-2 | ||
|
||
- name: Login to Amazon ECR ORG | ||
id: login-ecr-org | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build and push docker image to ECR Docker | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: Dockerfile.tests | ||
push: true | ||
build-args: | | ||
"ECR_REGISTRY=${{ steps.login-ecr-org.outputs.registry }}-berlin" |
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,38 @@ | ||
name: Republish dev-latest docker image to DockerHub | ||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
ECR_REPOSITORY: pos-network-node | ||
DOCKERHUB_REPOSITORY: cerebellumnetwork | ||
PACKAGE_NAME: pos-node | ||
jobs: | ||
tag-and-push: | ||
runs-on: [self-hosted, cere-network-xlarge] | ||
steps: | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.DEV_NETWORK_AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.DEV_NETWORK_AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-2 | ||
- name: Login to Amazon ECR | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
- name: Pull image from ECR and change name, push tagged version to ECR | ||
env: | ||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
run: | | ||
docker pull $ECR_REGISTRY/$ECR_REPOSITORY:dev-latest | ||
docker image tag $ECR_REGISTRY/$ECR_REPOSITORY:dev-latest $DOCKERHUB_REPOSITORY/$PACKAGE_NAME:dev-latest | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Publish image to DockerHub | ||
id: docker_publish | ||
run: | | ||
docker push $DOCKERHUB_REPOSITORY/$PACKAGE_NAME:dev-latest | ||
- name: Image digest | ||
run: echo ${{ steps.docker_publish.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ on: | |
push: | ||
branches: | ||
- dev | ||
- staging | ||
- new-staging | ||
- master | ||
- 'release/**' | ||
- 'hotfix/**' | ||
|
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.