diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000000..44bc46dffab7 --- /dev/null +++ b/.circleci/config.yml @@ -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/<>:<>" -f <> <<#parameters.target>>--target <><> . + docker push "ethereumoptimism/<>:<>" + +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