Skip to content

Commit

Permalink
Merge pull request ethereum#34 from maticnetwork/patch/bor_dockerpuds_ci
Browse files Browse the repository at this point in the history
added github actions workflow for BOR docker push
  • Loading branch information
jdkanani authored Mar 20, 2020
2 parents 9e2f108 + 8ee0480 commit 1fd47e6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Bor Docker Image CI

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Bor Docker image
env:
DOCKERHUB: ${{ secrets.DOCKERHUB }}
DOCKERHUB_KEY: ${{ secrets.DOCKERHUB_KEY }}
run: |
ls -l
echo "Docker login"
docker login -u $DOCKERHUB -p $DOCKERHUB_KEY
echo "running build"
docker build -t maticnetwork/bor:${GITHUB_REF/refs\/tags\//} .
echo "pushing image"
docker push maticnetwork/bor:${GITHUB_REF/refs\/tags\//}
echo "DONE!"

0 comments on commit 1fd47e6

Please sign in to comment.