forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ethereum#34 from maticnetwork/patch/bor_dockerpuds_ci
added github actions workflow for BOR docker push
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" |