diff --git a/build.Dockerfile b/build.Dockerfile index c93c3fda88c76e890ab20210b3af537628b95057..f434c62d31b7ad8c8e79296f78556c60b0a9184a 100644 --- a/build.Dockerfile +++ b/build.Dockerfile @@ -6,7 +6,7 @@ FROM ${BASE_IMAGE}:${BASE_IMAGE_VERSION} SHELL ["/bin/ash", "-o", "pipefail", "-c"] # Do not move the ARG below above the FROM or it gets erased. # More precisely: ARG above FROM can be used in the FROM itself, but nowhere else. -ARG EXECUTABLES +ARG OCTEZ_EXECUTABLES ARG GIT_SHORTREF ARG GIT_DATETIME ARG GIT_VERSION @@ -29,7 +29,7 @@ COPY --chown=tezos:nogroup vendors tezos/vendors ENV GIT_SHORTREF=${GIT_SHORTREF} ENV GIT_DATETIME=${GIT_DATETIME} ENV GIT_VERSION=${GIT_VERSION} -RUN opam exec -- make -C tezos release EXECUTABLES="${EXECUTABLES}" OCTEZ_BIN_DIR=bin +RUN opam exec -- make -C tezos release OCTEZ_EXECUTABLES="${OCTEZ_EXECUTABLES}" OCTEZ_BIN_DIR=bin # Gather the parameters of all active protocols in 1 place RUN while read -r protocol; do \ mkdir -p tezos/parameters/"$protocol"-parameters && \ diff --git a/scripts/ci/docker_release.sh b/scripts/ci/docker_release.sh index 3093d7ec6029a4e58e4e44493840594c92853148..1a801f160381fefc5d97c261ebcfbff28b77613c 100755 --- a/scripts/ci/docker_release.sh +++ b/scripts/ci/docker_release.sh @@ -20,7 +20,7 @@ if [ -z "$EXECUTABLE_FILES" ]; then fi # shellcheck disable=SC2086 -EXECUTABLES="$(cat $EXECUTABLE_FILES)" +OCTEZ_EXECUTABLES="$(cat $EXECUTABLE_FILES)" # Build minimal, bare and debug images ./scripts/create_docker_image.sh \ @@ -28,7 +28,7 @@ EXECUTABLES="$(cat $EXECUTABLE_FILES)" "${DOCKER_IMAGE_TAG}" \ "${build_deps_image_name}" \ "${build_deps_image_version}" \ - "${EXECUTABLES}" \ + "${OCTEZ_EXECUTABLES}" \ "${CI_COMMIT_SHORT_SHA}" # auth gitlab or dockerhub registry diff --git a/scripts/create_docker_image.sh b/scripts/create_docker_image.sh index ae827b9e8505c324c32353c450c67a7b52e8a06a..e2fc0e5f14321d6346ff84abd2fc9dfda8943340 100755 --- a/scripts/create_docker_image.sh +++ b/scripts/create_docker_image.sh @@ -32,7 +32,7 @@ docker build \ --cache-from "$build_image_name:$image_version" \ --build-arg "BASE_IMAGE=$build_deps_image_name" \ --build-arg "BASE_IMAGE_VERSION=runtime-build-dependencies--$build_deps_image_version" \ - --build-arg "EXECUTABLES=${executables}" \ + --build-arg "OCTEZ_EXECUTABLES=${executables}" \ --build-arg "GIT_SHORTREF=${commit_short_sha}" \ --build-arg "GIT_DATETIME=${commit_datetime}" \ --build-arg "GIT_VERSION=${commit_tag}" \