Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Push Docker image to my DockerHub repo

on:
pull_request:
types:
- closed

jobs:
build-and-push:
if: contains(github.event.pull_request.labels.*.name, 'CI:Build') && github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build Docker Image
run: |
docker build -t mtotovski/go-ethereum:latest .

- name: Push Docker Image
run: |
docker push mtotovski/go-ethereum:latest
17 changes: 17 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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