CI build #20
12
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name: Docker Build
|
||||||
|
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Run docker build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Run docker build
|
||||||
|
run: docker build -t vulcanize/go-ethereum -f Dockerfile.amd64 .
|
25
.github/workflows/on-master.yaml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
|||||||
|
name: Docker Build and publish to Github
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
on:
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
push:
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
branches:
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
- master
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
jobs:
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
build:
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
name: Run docker build and publish
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
runs-on: ubuntu-latest
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
steps:
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
- uses: actions/checkout@v2
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
- name: Run docker build
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
run: docker build -t vulcanize/go-ethereum -f Dockerfile.amd64 .
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
- name: Get the version
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
id: vars
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
run: echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
- name: Tag docker image
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
run: docker tag vulcanize/go-ethereum docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}}
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
- name: Docker Login
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login https://docker.pkg.github.com -u vulcanize --password-stdin
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
- name: Docker Push
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
run: docker push docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}}
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
|||||||
|
|
||||||
AFDudley
commented
tag should be vulcanize/go-ethereum tag should be vulcanize/go-ethereum
@AFDudley fixed @AFDudley fixed
|
32
.github/workflows/publish.yaml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: Publish geth to release
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
jobs:
|
||||||
|
push_to_registries:
|
||||||
|
name: Publish assets to Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Get the version
|
||||||
|
id: vars
|
||||||
|
run: |
|
||||||
|
echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
|
||||||
|
- name: Docker Login to Github Registry
|
||||||
|
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login https://docker.pkg.github.com -u vulcanize --password-stdin
|
||||||
|
- name: Docker Pull
|
||||||
|
run: docker pull docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}}
|
||||||
|
- name: Copy ethereum binary file
|
||||||
|
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
|
||||||
|
- name: Get release
|
||||||
|
id: get_release
|
||||||
|
uses: bruceadams/get-release@v1.2.0
|
||||||
|
- name: Upload Release Asset
|
||||||
|
id: upload-release-asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.get_release.outputs.upload_url }}
|
||||||
|
asset_path: geth-linux-amd64
|
||||||
|
asset_name: geth-linux-amd64
|
||||||
|
asset_content_type: application/octet-stream
|
7
Dockerfile.amd64
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Build Geth in a stock Go builder container
|
||||||
|
FROM golang:1.13 as builder
|
||||||
|
|
||||||
|
#RUN apk add --no-cache make gcc musl-dev linux-headers git
|
||||||
|
|
||||||
|
ADD . /go-ethereum
|
||||||
|
RUN cd /go-ethereum && make geth
|
tag should be vulcanize/go-ethereum
tag should be vulcanize/go-ethereum
@AFDudley fixed
@AFDudley fixed