mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
Merge pull request #1 from totovskimartin/task-2
[CI:Build] commiting on task #2
This commit is contained in:
commit
318b90f529
2 changed files with 46 additions and 0 deletions
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 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
17
docker-compose.yaml
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
|
||||
Loading…
Reference in a new issue