From 511d8f9e30b04f085cfbd82f5d4126f480d60fa9 Mon Sep 17 00:00:00 2001 From: Oksana Shadura Date: Mon, 12 Sep 2022 19:08:11 +0200 Subject: [PATCH] An ARG declared before the FROM instruction can't be used after the FROM --- docker/Dockerfile.cc-ubuntu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/Dockerfile.cc-ubuntu b/docker/Dockerfile.cc-ubuntu index a7522aaa..a3b9eee8 100644 --- a/docker/Dockerfile.cc-ubuntu +++ b/docker/Dockerfile.cc-ubuntu @@ -13,8 +13,10 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] USER root LABEL maintainer="Oksana Shadura " # Tag +# Tag ARG TAG ARG PROJECT +ARG REGISTRY ARG WORKER_IMAGE="${REGISTRY}/${PROJECT}/cc-analysis-ubuntu" # Secrets ARG CERT_DIR="/etc/cmsaf-secrets" @@ -40,6 +42,7 @@ ARG GITHUB_ACTIONS="false" # Configure environment ENV CERT_DIR=$CERT_DIR ENV TAG=$TAG +ENV REGISTRY=$REGISTRY ENV WORKER_IMAGE=$WORKER_IMAGE ENV BEARER_TOKEN_FILE=$BEARER_TOKEN_FILE ENV DASK_ROOT_CONFIG=$DASK_ROOT_CONFIG