forked from ethereum/go-ethereum
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding action to publish image to dockerhub on merge to testnet branch (
#29) * adding action to publish image to dockerhub on merge to testnet
- Loading branch information
1 parent
931d2b6
commit 7d5325e
Showing
1 changed file
with
27 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,27 @@ | ||
name: Build & Push to DockerHub | ||
|
||
on: | ||
push: | ||
branches: | ||
- testnet | ||
|
||
jobs: | ||
build: | ||
name: Build & Push to DockerHub | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
|
||
- name: Login to DockerHub Registry | ||
run: echo ${{ secrets.DOCKERHUB_ACCESS_TOKEN_SECRET }} | docker login -u ${{ secrets.DOCKERHUB_ACCESS_TOKEN_USERNAME}} --password-stdin | ||
|
||
- name: Build and push Optimistic Ethereum Node image to DockerHub | ||
run: | | ||
docker build -t ethereumoptimism/optimistic-ethereum-node:latest . | ||
docker push ethereumoptimism/optimistic-ethereum-node:latest | ||
- name: Logout of DockerHub | ||
run: docker logout |