From da50ceb17ea049b7c529976a722085c724157db6 Mon Sep 17 00:00:00 2001 From: Csongor Kiss Date: Mon, 17 Oct 2022 12:16:54 +0000 Subject: [PATCH] CI: move num_guardians docker ARG down to improve caching --- Dockerfile.const | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.const b/Dockerfile.const index 5607f2498..261ef8f8d 100644 --- a/Dockerfile.const +++ b/Dockerfile.const @@ -1,9 +1,6 @@ # syntax=docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2 FROM docker.io/fedora:34@sha256:321dbc444dfeda328a85dc3c31545a65c1fae8390aa5ba6dc1f5222b53b42697 AS const-build -ARG num_guardians -ENV NUM_GUARDIANS=$num_guardians - # add additional root CAs COPY cert.pem* /certs/ RUN if [ -e /certs/cert.pem ]; then cp /certs/cert.pem /etc/pki/tls/certs/ca-bundle.crt; fi @@ -37,6 +34,9 @@ WORKDIR / COPY scripts ./scripts COPY ethereum/.env.test ./ethereum/.env.test +ARG num_guardians +ENV NUM_GUARDIANS=$num_guardians + # run guardian-set-init.sh to create env files with the init state for NUM_GUARDIANS RUN ./scripts/guardian-set-init.sh $NUM_GUARDIANS