Merge pull request #1 from totovskimartin/task-2

[CI:Build] commiting on task #2
This commit is contained in:
Martin Totovski 2025-03-18 23:59:29 +02:00 committed by GitHub
commit 318b90f529
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 46 additions and 0 deletions

29
.github/workflows/docker-build.yaml vendored Normal file
View file

@ -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
docker-compose.yaml Normal file
View 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