forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 6695f82 Merge: e07e80c a582e6f Author: Kero <[email protected]> Date: Wed Apr 19 14:25:18 2023 +0800 Merge pull request #17 from node-real/gastrack average base fee commit e07e80c Merge: 250fbcb 372ec73 Author: Kero <[email protected]> Date: Mon Apr 17 18:29:41 2023 +0800 Merge pull request #14 from keroro520/docker-build-push-workflow feat(.github): add docker-build-push.yml commit 372ec73 Author: keroro <[email protected]> Date: Tue Apr 11 10:22:14 2023 +0800 feat(.github): add docker-build-push.yml commit 250fbcb Merge: f7e1641 8fa4ea6 Author: Kero <[email protected]> Date: Thu Apr 13 15:49:56 2023 +0800 Merge pull request #11 from node-real/update_to_for_bsc_0.5 update to for_bsc 0.5 commit 8fa4ea6 Author: s7v7nislands <[email protected]> Date: Thu Apr 13 13:22:43 2023 +0800 update to for_bsc 0.5 commit a582e6f Author: s7v7nislands <[email protected]> Date: Wed Apr 12 18:24:56 2023 +0800 filter system trxs which gas price is zero commit f7e1641 Merge: 0188575 25954a2 Author: Kero <[email protected]> Date: Wed Apr 12 15:29:02 2023 +0800 Merge pull request #9 from keroro520/cherry-pick-ci-with-tag Cherry pick ci with tag commit 25954a2 Author: keroro <[email protected]> Date: Tue Apr 11 21:15:56 2023 +0800 fix(.github): change create trigger to push trigger commit 4173294 Author: ArthurMa <[email protected]> Date: Tue Apr 11 19:30:23 2023 +0800 Update ci-with-tag.yml commit a7672a5 Author: ArthurMa <[email protected]> Date: Tue Apr 11 18:44:26 2023 +0800 Update ci-with-tag.yml commit 071c9d8 Author: ArthurMa <[email protected]> Date: Tue Apr 11 17:51:44 2023 +0800 Update ci-with-tag.yml commit 1d83273 Author: ArthurMa <[email protected]> Date: Tue Apr 11 17:44:58 2023 +0800 Update ci-with-tag.yml commit 023aa14 Author: ArthurMa <[email protected]> Date: Tue Apr 11 17:12:30 2023 +0800 Update ci-with-tag.yml commit 40a7234 Author: ArthurMa <[email protected]> Date: Tue Apr 11 17:10:56 2023 +0800 Update and rename ci-with-pr.yml to ci-with-tag.yml commit 2f7128c Author: arthurma <[email protected]> Date: Tue Apr 11 14:24:56 2023 +0800 [beta] new a CI flow to export image to nr ecr commit 307353a Author: s7v7nislands <[email protected]> Date: Mon Apr 10 16:16:52 2023 +0800 add avarage gasprice to l1 block info commit 0188575 Merge: 9b95617 2bf1e92 Author: s7v7nislands <[email protected]> Date: Thu Apr 6 17:59:17 2023 +0800 Merge pull request #4 from node-real/fix_gasprice fix gasprice commit 2bf1e92 Author: s7v7nislands <[email protected]> Date: Thu Apr 6 16:47:03 2023 +0800 fix gasprice commit 9b95617 Merge: fbba7ba d75fb80 Author: Kero <[email protected]> Date: Tue Mar 28 16:53:01 2023 +0800 Merge pull request #2 from node-real/fix_basefee fix basefee commit d75fb80 Author: s7v7nislands <[email protected]> Date: Tue Mar 28 16:51:12 2023 +0800 fix basefee commit fbba7ba Merge: 7bdcb0f 22779e4 Author: s7v7nislands <[email protected]> Date: Mon Mar 27 16:19:31 2023 +0800 Merge pull request #1 from node-real/fix_bsc fix optimims port to bsc commit 22779e4 Author: s7v7nislands <[email protected]> Date: Sun Mar 26 21:44:48 2023 +0800 fix optimims port to bsc
- Loading branch information
1 parent
1afd173
commit 8397563
Showing
15 changed files
with
266 additions
and
28 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,77 @@ | ||
name: CI-trigger-by-tag | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
env: | ||
REGION: us-east-1 | ||
ECR_REGISTRY_ID: 553885929720 | ||
|
||
jobs: | ||
ci-lint: | ||
runs-on: [self-hosted,qa-infra-k8s] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: static check | ||
id: static-check | ||
# TODO: developers need to add static check scripts | ||
run: | | ||
echo "static check" | ||
ci-tests: | ||
runs-on: [self-hosted,qa-infra-k8s] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: unit tests | ||
id: unit-tests | ||
# TODO: developers need to add unit test scripts | ||
run: | | ||
echo "unit tests" | ||
ci-build: | ||
runs-on: [self-hosted,qa-infra-k8s] | ||
needs: [ci-lint, ci-tests] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v2 # More information on this action can be found below in the 'AWS Credentials' section | ||
with: | ||
role-to-assume: arn:aws:iam::553885929720:role/tf_nodereal_prod_ecr_cicd_deployment_assume_role | ||
aws-region: us-east-1 | ||
role-duration-seconds: 1800 | ||
- name: Build, tag, and push image to Amazon ECR | ||
env: | ||
OP_NODE_IMAGE_REPO: op-node | ||
OP_BATCHER_IMAGE_REPO: op-batcher | ||
OP_PROPOSER_IMAGE_REPO: op-proposer | ||
run: | | ||
OP_NODE_IMAGE_NAME="${ECR_REGISTRY_ID}.dkr.ecr.${REGION}.amazonaws.com/$OP_NODE_IMAGE_REPO:${GITHUB_REF#refs/*/}" | ||
OP_BATCHER_IMAGE_NAME="${ECR_REGISTRY_ID}.dkr.ecr.${REGION}.amazonaws.com/$OP_BATCHER_IMAGE_REPO:${GITHUB_REF#refs/*/}" | ||
OP_PROPOSER_IMAGE_NAME="${ECR_REGISTRY_ID}.dkr.ecr.${REGION}.amazonaws.com/$OP_PROPOSER_IMAGE_REPO:${GITHUB_REF#refs/*/}" | ||
aws ecr get-login-password --region ${REGION} | docker login --username AWS --password-stdin ${ECR_REGISTRY_ID}.dkr.ecr.${REGION}.amazonaws.com | ||
aws ecr --region $REGION describe-repositories --registry-id $ECR_REGISTRY_ID --repository-names $OP_NODE_IMAGE_REPO || aws ecr --region $REGION create-repository --registry-id $ECR_REGISTRY_ID --repository-name $OP_NODE_IMAGE_REPO | ||
aws ecr --region $REGION set-repository-policy --registry-id $ECR_REGISTRY_ID --repository-name $OP_NODE_IMAGE_REPO --policy-text file:///home/runner/repo-access-permissions.json | ||
aws ecr --region $REGION describe-repositories --registry-id $ECR_REGISTRY_ID --repository-names $OP_BATCHER_IMAGE_REPO || aws ecr --region $REGION create-repository --registry-id $ECR_REGISTRY_ID --repository-name $OP_BATCHER_IMAGE_REPO | ||
aws ecr --region $REGION set-repository-policy --registry-id $ECR_REGISTRY_ID --repository-name $OP_BATCHER_IMAGE_REPO --policy-text file:///home/runner/repo-access-permissions.json | ||
aws ecr --region $REGION describe-repositories --registry-id $ECR_REGISTRY_ID --repository-names $OP_PROPOSER_IMAGE_REPO || aws ecr --region $REGION create-repository --registry-id $ECR_REGISTRY_ID --repository-name $OP_PROPOSER_IMAGE_REPO | ||
aws ecr --region $REGION set-repository-policy --registry-id $ECR_REGISTRY_ID --repository-name $OP_PROPOSER_IMAGE_REPO --policy-text file:///home/runner/repo-access-permissions.json | ||
docker build --build-arg GIT_TOKEN=${{ secrets.GO_MODULES_TOKEN }} -t $OP_NODE_IMAGE_NAME -f op-node/Dockerfile . | ||
docker push $OP_NODE_IMAGE_NAME | ||
docker build --build-arg GIT_TOKEN=${{ secrets.GO_MODULES_TOKEN }} -t $OP_BATCHER_IMAGE_NAME -f op-batcher/Dockerfile . | ||
docker push $OP_BATCHER_IMAGE_NAME | ||
docker build --build-arg GIT_TOKEN=${{ secrets.GO_MODULES_TOKEN }} -t $OP_PROPOSER_IMAGE_NAME -f op-proposer/Dockerfile . | ||
docker push $OP_PROPOSER_IMAGE_NAME | ||
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,48 @@ | ||
name: Build and Push Docker Images | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push op-node image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./op-node/Dockerfile | ||
push: true | ||
tags: ghcr.io/node-real/optimism/op-node:${{ github.ref_name }} | ||
|
||
- name: Build and push op-batcher image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./op-batcher/Dockerfile | ||
push: true | ||
tags: ghcr.io/node-real/optimism/op-batcher:${{ github.ref_name }} | ||
|
||
- name: Build and push op-proposer image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./op-proposer/Dockerfile | ||
push: true | ||
tags: ghcr.io/node-real/optimism/op-proposer:${{ github.ref_name }} |
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.