mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
[CI:Build] Init commit
This commit is contained in:
parent
c4f0450710
commit
1c9dc72278
2 changed files with 46 additions and 0 deletions
17
.github/docker-compose.yaml
vendored
Normal file
17
.github/docker-compose.yaml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
geth-node:
|
||||
image: mtotovski/go-ethereum:latest
|
||||
container_name: geth-devnet
|
||||
ports:
|
||||
- "8545:8545"
|
||||
- "30303:30303"
|
||||
command: >
|
||||
--dev
|
||||
--http
|
||||
--http.addr 0.0.0.0
|
||||
--http.port 8545
|
||||
--http.api eth,net,web3
|
||||
--http.corsdomain "*"
|
||||
--allow-insecure-unlock
|
||||
29
.github/workflows/docker-build.yaml
vendored
Normal file
29
.github/workflows/docker-build.yaml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Build and Push Docker image to DockerHub
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
|
||||
jobs:
|
||||
check-label-and-build:
|
||||
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build')
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log into Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker build -t mtotovski/go-ethereum:latest .
|
||||
|
||||
- name: Push Docker image
|
||||
run: |
|
||||
docker push mtotovski/go-ethereum:latest
|
||||
Loading…
Reference in a new issue