Skip to content

Commit

Permalink
new: push develop/master branch docker images (ethereum#80)
Browse files Browse the repository at this point in the history
* new: push develop/master branch docker images

* fix: typo !minor
  • Loading branch information
jdkanani authored Jul 16, 2020
1 parent 12ec141 commit 6e0f8a6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/dockerimage-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Images For Latest Branches

on:
push:
branches:
- develop
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build 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\/heads\//} .
echo "Pushing image"
docker push maticnetwork/bor:${GITHUB_REF/refs\/heads\//}
echo "Done"

0 comments on commit 6e0f8a6

Please sign in to comment.