File tree Expand file tree Collapse file tree 4 files changed +76
-0
lines changed Expand file tree Collapse file tree 4 files changed +76
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Build
2+
3+ on : [pull_request]
4+
5+ jobs :
6+ build :
7+ name : Run docker build
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v2
11+ - name : Run docker build
12+ run : docker build -t vulcanize/go-ethereum -f Dockerfile.amd64 .
Original file line number Diff line number Diff line change 1+ name : Docker Build and publish to Github
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ build :
10+ name : Run docker build and publish
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+ - name : Run docker build
15+ run : docker build -t vulcanize/go-ethereum -f Dockerfile.amd64 .
16+ - name : Get the version
17+ id : vars
18+ run : echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
19+ - name : Tag docker image
20+ run : docker tag vulcanize/go-ethereum docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}}
21+ - name : Docker Login
22+ run : echo ${{ secrets.GITHUB_TOKEN }} | docker login https://docker.pkg.github.com -u vulcanize --password-stdin
23+ - name : Docker Push
24+ run : docker push docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}}
25+
Original file line number Diff line number Diff line change 1+ name : Publish geth to release
2+ on :
3+ release :
4+ types : [published]
5+ jobs :
6+ push_to_registries :
7+ name : Publish assets to Release
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Get the version
11+ id : vars
12+ run : |
13+ echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
14+ - name : Docker Login to Github Registry
15+ run : echo ${{ secrets.GITHUB_TOKEN }} | docker login https://docker.pkg.github.com -u vulcanize --password-stdin
16+ - name : Docker Pull
17+ run : docker pull docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}}
18+ - name : Copy ethereum binary file
19+ run : docker run --rm --entrypoint cat docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}} /go-ethereum/build/bin/geth > geth-linux-amd64
20+ - name : Get release
21+ id : get_release
22+ uses :
bruceadams/[email protected] 23+ - name : Upload Release Asset
24+ id : upload-release-asset
25+ uses : actions/upload-release-asset@v1
26+ env :
27+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ with :
29+ upload_url : ${{ steps.get_release.outputs.upload_url }}
30+ asset_path : geth-linux-amd64
31+ asset_name : geth-linux-amd64
32+ asset_content_type : application/octet-stream
Original file line number Diff line number Diff line change 1+ # Build Geth in a stock Go builder container
2+ FROM golang:1.13 as builder
3+
4+ #RUN apk add --no-cache make gcc musl-dev linux-headers git
5+
6+ ADD . /go-ethereum
7+ RUN cd /go-ethereum && make geth
You can’t perform that action at this time.
0 commit comments