Revision 1968ec86fdb6f632c2770979cd677ff86246bdf0 authored by Alain Mebsout on 04 July 2023, 13:20:44 UTC, committed by Alain Mebsout on 04 July 2023, 13:20:44 UTC
This fixes an issue occurring in the scenario: - The L1 node is down for 1 hour - The L1 node is back up for a bit - The L1 node is down for a few seconds The second time, the rollup node would have waited ~1h to reconnect.
1 parent 0eaebb7
docker_release.sh
#!/usr/bin/env bash
set -e
. scripts/ci/docker.env
if [ -z "${build_deps_image_name}" ]; then echo "build_deps_image_name is unset" && exit 3; fi
if [ -z "${build_deps_image_version}" ]; then echo "build_deps_image_version is unset" && exit 3; fi
cd "${CI_PROJECT_DIR}" || exit 1
# Environment variables from before_script
. ./scripts/ci/docker.env
if [ -z "$EXECUTABLE_FILES" ]; then
echo "Error: environment variable EXECUTABLE_FILES is empty."
echo "Set it to e.g. 'script-inputs/released-executables'"
echo "or to 'script-inputs/released-executables script-inputs/experimental-executables'."
exit 1
fi
# shellcheck disable=SC2086
OCTEZ_EXECUTABLES="$(cat $EXECUTABLE_FILES)"
# Build minimal, bare and debug images
./scripts/create_docker_image.sh \
"${DOCKER_IMAGE_NAME}" \
"${DOCKER_IMAGE_TAG}" \
"${build_deps_image_name}" \
"${build_deps_image_version}" \
"${OCTEZ_EXECUTABLES}" \
"${CI_COMMIT_SHORT_SHA}" \
"${DOCKER_BUILD_TARGET}" \
"${RUST_TOOLCHAIN_IMAGE}"
# auth gitlab or dockerhub registry
# notice the different namespace for gitlab and that we remove the `-`
# Test bare image
./scripts/ci/docker_smoke_test.sh "${DOCKER_IMAGE_NAME}bare:${DOCKER_IMAGE_TAG}" "${CI_COMMIT_SHORT_SHA}" version
# Push minimal, bare and debug images
./scripts/ci/docker_push_all.sh
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...