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:
Will Meister 2020-09-16 10:26:38 -05:00 committed by GitHub
parent 493fe631f7
commit 50adf39ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 91 additions and 0 deletions

View 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 }}

View 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 }}

View File

@ -20,6 +20,7 @@ TARGET_GAS_LIMIT=${TARGET_GAS_LIMIT:-4294967295}
--rpc \
--rpcaddr $HOSTNAME \
--rpcvhosts='*' \
--rpccorsdomain='*' \
--rpcport $PORT \
--networkid $NETWORK_ID \
--rpcapi 'eth,net' \