mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
feat: add devnet build workflow
This commit is contained in:
parent
144c230f6a
commit
2165beaf4c
2 changed files with 39 additions and 1 deletions
38
.github/workflows/devnet-build.yml
vendored
Normal file
38
.github/workflows/devnet-build.yml
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
name: Devnet Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [closed]
|
||||||
|
|
||||||
|
env:
|
||||||
|
AWS_REGION: ${{ vars.AWS_REGION }}
|
||||||
|
REPO_URL: ${{ vars.ECR_REPO_URL }}
|
||||||
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Deploy')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup AWS CLI credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v4
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: ${{ env.AWS_REGION }}
|
||||||
|
|
||||||
|
- name: Login to Amazon ECR
|
||||||
|
run: aws ecr get-login-password --region ${{ env.AWS_REGION }} | docker login --username AWS --password-stdin ${{ env.REPO_URL }}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile.devnet
|
||||||
|
push: true
|
||||||
|
tags: ${{ env.REPO_URL }}/limechain/devnet:latest
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
name: Docker Build
|
name: Geth Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
Loading…
Reference in a new issue