From 875524e5f0bf3376f6a4b68608279185816fafb2 Mon Sep 17 00:00:00 2001 From: Matthew Slipper Date: Thu, 5 May 2022 16:47:55 -0600 Subject: [PATCH] Add docker builds (#16) Meta: - Fixes ENG-2097 --- .circleci/config.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .circleci/config.yml 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