Skip to content

Commit

Permalink
Add docker builds (ethereum#16)
Browse files Browse the repository at this point in the history
Meta:

- Fixes ENG-2097
  • Loading branch information
mslipper authored and protolambda committed Sep 6, 2022
1 parent 9c45afd commit 875524e
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: 2.1


jobs:
build-dockerfile:
docker:
- image: cimg/base:2022.04
parameters:
image-name:
description: Image name
type: string
image-tag:
description: Image tag
type: string
target:
description: Dockerfile target
type: string
default: ""
dockerfile:
description: Dockerfile to use
type: string
steps:
- checkout
- setup_remote_docker:
version: 20.10.12
- run:
name: Build
command: |
echo "$DOCKER_PASS" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker build -t "ethereumoptimism/<<parameters.image-name>>:<<parameters.image-tag>>" -f <<parameters.dockerfile>> <<#parameters.target>>--target <<parameters.target>><</parameters.target>> .
docker push "ethereumoptimism/<<parameters.image-name>>:<<parameters.image-tag>>"
workflows:
main:
jobs:
- build-dockerfile:
context:
- optimism
filters:
branches:
only:
- optimism-prototype
image-name: reference-optimistic-geth
image-tag: develop
dockerfile: Dockerfile
name: Build reference-optimistic-geth

0 comments on commit 875524e

Please sign in to comment.