From 0053f4a3fa887070091e5592d028b755bb4480cd Mon Sep 17 00:00:00 2001 From: Matthew Slipper Date: Mon, 6 Mar 2023 21:43:15 -0700 Subject: [PATCH] Tag optimism branch (#66) --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ab5f45b082..1eb3c2fcc6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -79,8 +79,12 @@ jobs: - run: name: Build and push command: | + RAW_TAGS="<>" + if [ "$CIRCLE_BRANCH" = "optimism" ]; then + RAW_TAGS="$RAW_TAGS,optimism" + fi IMAGE_BASE="<>/<>/<>" - DOCKER_TAGS=$(echo -ne <> | sed "s/,/\n/g" | sed "s/[^a-zA-Z0-9\n.]/-/g" | sed -e "s|^|-t ${IMAGE_BASE}:|") + DOCKER_TAGS=$(echo -ne "$RAW_TAGS" | sed "s/,/\n/g" | sed "s/[^a-zA-Z0-9\n.]/-/g" | sed -e "s|^|-t ${IMAGE_BASE}:|") docker context create buildx-build docker buildx create --use buildx-build docker buildx build --push \