Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
08455c2b
Commit
08455c2b
authored
4 years ago
by
Mark Tyneway
Committed by
GitHub
4 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitflows: add push to dockerhub (#48)
parent
e52ce890
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
dockerhub-build-push.yml
...ages/contracts/.github/workflows/dockerhub-build-push.yml
+38
-0
No files found.
packages/contracts/.github/workflows/dockerhub-build-push.yml
0 → 100644
View file @
08455c2b
name
:
Build & Push to DockerHub
on
:
push
:
branches
:
-
master
-
testnet
-
uat
jobs
:
build
:
name
:
Build & Push to DockerHub
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
webfactory/ssh-agent@v0.4.0
with
:
ssh-private-key
:
${{ secrets.SSH_PRIVATE_KEY_READ }}
-
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 Deployer image to DockerHub
run
:
|
git clone https://github.com/ethereum-optimism/docker.git \
$HOME/docker
cd $HOME/docker
BRANCH=${GITHUB_REF##*/}
./build.sh -s deployer -b $BRANCH
if [ $BRANCH == 'master' ]; then
docker push ethereumoptimism/deployer:latest
elif [[ $BRANCH == 'uat' || $BRANCH == 'testnet' ]]; then
docker push ethereumoptimism/deployer:$BRANCH
fi
-
name
:
Logout of DockerHub
run
:
docker logout
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment