Merge pull request #3 from nikolaivanovj/initialtest

Initialtest
This commit is contained in:
nikolaivanovj 2025-01-05 20:54:31 +00:00 committed by GitHub
commit 123c45ea61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 40 additions and 24 deletions

31
.github/workflows/build-push.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Build and Push Docker Image
on:
pull_request:
branches:
- main
labels:
- CI:Build
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PAT }}
- name: Build and Push Docker Image
run: |
docker build -t ${{ secrets.DOCKER_HUB_USERNAME }}/go-ethereum:latest .
docker push ${{ secrets.DOCKER_HUB_USERNAME }}/go-ethereum:latest

9
.github/workflows/docker-compose.yml vendored Normal file
View file

@ -0,0 +1,9 @@
version: '3.8'
services:
geth:
image: "${{ secrets.DOCKER_HUB_USERNAME }}/go-ethereum:latest"
ports:
- "8545:8545"
- "30303:30303"

View file

@ -1,24 +0,0 @@
name: i386 linux tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23.0
cache: false
- name: Run tests
run: go test -short ./...
env:
GOOS: linux
GOARCH: 386