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-compose build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Run docker build
|
||||||
|
run: docker build -t vulcanize/ethereum -f Dockerfile .
|
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
|
||||||
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: 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: 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/ethereum -f Dockerfile .
|
||||||
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/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
|
tag should be vulcanize/go-ethereum
tag should be vulcanize/go-ethereum
@AFDudley fixed
@AFDudley fixed