Skip to content

Commit

Permalink
github actions: fix docker push (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
tynes authored Nov 3, 2020
1 parent 64fff4e commit ba65fea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/dockerhub-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ jobs:
git clone https://github.com/ethereum-optimism/docker.git \
$HOME/docker
cd $HOME/docker
./build.sh -s batch-submitter -b $GITHUB_HEAD_REF
if [ $GITHUB_HEAD_REF == 'master' ]; then
BRANCH=${GITHUB_REF##*/}
./build.sh -s batch-submitter -b $BRANCH
if [ $BRANCH == 'master' ]; then
docker push ethereumoptimism/batch-submitter:latest
elif [[ $GITHUB_HEAD_REF == 'uat' || $GITHUB_HEAD_REF == 'testnet' ]]; then
docker push ethereumoptimism/batch-submitter:$GITHUB_HEAD_REF
elif [[ $BRANCH == 'uat' || $BRANCH == 'testnet' ]]; then
docker push ethereumoptimism/batch-submitter:$BRANCH
fi
- name: Logout of DockerHub
Expand Down

0 comments on commit ba65fea

Please sign in to comment.