Skip to content

Commit

Permalink
Adding action to publish image to dockerhub on merge to testnet branch (
Browse files Browse the repository at this point in the history
#29)

* adding action to publish image to dockerhub on merge to testnet
  • Loading branch information
willmeister committed Sep 22, 2020
1 parent 931d2b6 commit 7d5325e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dockerhub-build-push.yml
@@ -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

0 comments on commit 7d5325e

Please sign in to comment.