CI build #20

Merged
ramilexe merged 7 commits from ci into statediff_at_anyblock-1.9.11 2020-08-26 14:55:12 +00:00
4 changed files with 76 additions and 0 deletions

12
.github/workflows/build.yml vendored Normal file
View 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
View File

@ -0,0 +1,25 @@
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
name: Docker Build and publish to Github
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
on:
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
push:
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
branches:
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
- master
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
jobs:
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
build:
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
name: Run docker build and publish
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
runs-on: ubuntu-latest
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
steps:
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
- uses: actions/checkout@v2
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
- name: Run docker build
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
run: docker build -t vulcanize/go-ethereum -f Dockerfile.amd64 .
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
- name: Get the version
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
id: vars
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
run: echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7})
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
- name: Tag docker image
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
run: docker tag vulcanize/go-ethereum docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}}
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
- name: Docker Login
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login https://docker.pkg.github.com -u vulcanize --password-stdin
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
- name: Docker Push
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
run: docker push docker.pkg.github.com/vulcanize/go-ethereum/go-ethereum:${{steps.vars.outputs.sha}}
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed
Review

tag should be vulcanize/go-ethereum

tag should be vulcanize/go-ethereum
ramilexe commented 2020-08-24 20:38:04 +00:00 (Migrated from github.com)
Review

@AFDudley fixed

@AFDudley fixed

32
.github/workflows/publish.yaml vendored Normal file
View 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
View 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