From 370cae83b3b1b2a116f766a6fca4e00adc49288b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3n=20Levy?= Date: Wed, 27 Nov 2024 18:15:02 +0000 Subject: [PATCH] Revert "chore(ci): Use `DOCKER_REGISTRY`, and compat (#17051)" This reverts commit c2dc4714c8aa53bcef576c2e4ce8f906fba1e0b1. --- scripts/ci/Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/ci/Dockerfile b/scripts/ci/Dockerfile index 5243250c82f8..87af34683e01 100644 --- a/scripts/ci/Dockerfile +++ b/scripts/ci/Dockerfile @@ -1,12 +1,9 @@ # This is a multi-stage Dockerfile which contains all CI-related operations as well as images to be deployed in production ARG PLAYWRIGHT_VERSION -ARG DOCKER_ECR_REGISTRY=public.ecr.aws/docker -ARG DOCKER_IMAGE_REGISTRY=${DOCKER_ECR_REGISTRY%/docker} -# Alias DOCKER_IMAGE_REGISTRY to DOCKER_REGISTRY for backwards compatibility -ARG DOCKER_REGISTRY=${DOCKER_IMAGE_REGISTRY}/docker +ARG DOCKER_IMAGE_REGISTRY=public.ecr.aws ARG NODE_IMAGE_TAG -FROM ${DOCKER_REGISTRY}/library/node:${NODE_IMAGE_TAG} AS deps +FROM ${DOCKER_IMAGE_REGISTRY}/docker/library/node:${NODE_IMAGE_TAG} AS deps # hadolint ignore=DL3018 RUN apk add -U git @@ -40,7 +37,7 @@ ENV NODE_OPTIONS="--max-old-space-size=8192" RUN yarn run build ${APP} --prod # This is base image for containers that are to be deployed -FROM ${DOCKER_REGISTRY}/library/node:${NODE_IMAGE_TAG} AS output-base +FROM ${DOCKER_IMAGE_REGISTRY}/docker/library/node:${NODE_IMAGE_TAG} AS output-base ARG APP ARG APP_HOME ARG APP_DIST_HOME @@ -88,7 +85,7 @@ LABEL branch=${GIT_BRANCH} LABEL commit=${GIT_COMMIT_SHA} ENTRYPOINT [ "node", "main.js" ] -FROM ${DOCKER_REGISTRY}/nginx/nginx:1.21-alpine AS output-static +FROM ${DOCKER_IMAGE_REGISTRY}/nginx/nginx:1.21-alpine AS output-static ARG APP ARG APP_DIST_HOME ENV APP=${APP}