Adding uat and testnet build push on merge to uat and testnet branches, respectively. Making dev entrypoint have the same startup params as the main entrypoint (#20)
This commit is contained in:
parent
493fe631f7
commit
50adf39ded
45
.github/workflows/testnet-ecr-build-push.yml
vendored
Normal file
45
.github/workflows/testnet-ecr-build-push.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
name: Build & Tag Container, Push testnet build to ECR
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- testnet
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build, Tag & push testnet build to ECR
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup golang
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: '1.14.2'
|
||||||
|
|
||||||
|
- name: Install & Build
|
||||||
|
run: make all
|
||||||
|
|
||||||
|
- name: Configure AWS Credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_CI_USER_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_CI_USER_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: us-east-2
|
||||||
|
|
||||||
|
- name: Login to Amazon ECR
|
||||||
|
id: login-ecr
|
||||||
|
uses: aws-actions/amazon-ecr-login@v1
|
||||||
|
|
||||||
|
- name: Build, tag, and push image to Amazon ECR
|
||||||
|
env:
|
||||||
|
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
||||||
|
ECR_REPOSITORY: optimism/geth
|
||||||
|
IMAGE_TAG: testnet
|
||||||
|
run: |
|
||||||
|
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
|
||||||
|
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
|
||||||
|
|
||||||
|
- name: Logout of Amazon ECR
|
||||||
|
if: always()
|
||||||
|
run: docker logout ${{ steps.login-ecr.outputs.registry }}
|
45
.github/workflows/uat-ecr-build-push.yml
vendored
Normal file
45
.github/workflows/uat-ecr-build-push.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
name: Build & Tag Container, Push UAT build to ECR
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- uat
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build, Tag & push UAT build to ECR
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup golang
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: '1.14.2'
|
||||||
|
|
||||||
|
- name: Install & Build
|
||||||
|
run: make all
|
||||||
|
|
||||||
|
- name: Configure AWS Credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_CI_USER_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_CI_USER_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: us-east-2
|
||||||
|
|
||||||
|
- name: Login to Amazon ECR
|
||||||
|
id: login-ecr
|
||||||
|
uses: aws-actions/amazon-ecr-login@v1
|
||||||
|
|
||||||
|
- name: Build, tag, and push image to Amazon ECR
|
||||||
|
env:
|
||||||
|
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
||||||
|
ECR_REPOSITORY: optimism/geth
|
||||||
|
IMAGE_TAG: uat
|
||||||
|
run: |
|
||||||
|
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
|
||||||
|
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
|
||||||
|
|
||||||
|
- name: Logout of Amazon ECR
|
||||||
|
if: always()
|
||||||
|
run: docker logout ${{ steps.login-ecr.outputs.registry }}
|
@ -20,6 +20,7 @@ TARGET_GAS_LIMIT=${TARGET_GAS_LIMIT:-4294967295}
|
|||||||
--rpc \
|
--rpc \
|
||||||
--rpcaddr $HOSTNAME \
|
--rpcaddr $HOSTNAME \
|
||||||
--rpcvhosts='*' \
|
--rpcvhosts='*' \
|
||||||
|
--rpccorsdomain='*' \
|
||||||
--rpcport $PORT \
|
--rpcport $PORT \
|
||||||
--networkid $NETWORK_ID \
|
--networkid $NETWORK_ID \
|
||||||
--rpcapi 'eth,net' \
|
--rpcapi 'eth,net' \
|
||||||
|
Loading…
Reference in New Issue
Block a user