
Some checks failed
CI - 4NK_node / Security Tests (push) Failing after 27s
CI - 4NK_node / Documentation Tests (push) Failing after 3s
CI - 4NK_node / Security Audit (push) Successful in 3s
CI - 4NK_node / Release Guard (push) Has been skipped
CI - 4NK_node / Performance Tests (push) Successful in 27s
CI - 4NK_node / Notify (push) Failing after 1s
CI - 4NK_node / Publish Release (push) Has been skipped
CI - 4NK_node / Code Quality (push) Failing after 30s
CI - 4NK_node / Unit Tests (push) Failing after 29s
CI - 4NK_node / Integration Tests (push) Failing after 33s
CI - 4NK_node / Docker Build & Test (push) Failing after 10s
37 lines
839 B
Bash
Executable File
37 lines
839 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Pull repos in a defined order to prepare images for docker-compose
|
|
BASE_DIR="/home/debian/code/4NK_dev/4NK_node"
|
|
|
|
ORDER=(
|
|
modules/tor
|
|
modules/bitcoin-core
|
|
modules/blindbit-oracle
|
|
modules/sp-client
|
|
modules/sdk_common
|
|
modules/sdk_client
|
|
modules/sdk_relay
|
|
modules/sdk_storage
|
|
modules/sdk_signer_client
|
|
modules/sdk_signer
|
|
modules/ihm_client
|
|
modules/4NK_template
|
|
projects/lecoffre-back-mini
|
|
projects/lecoffre-front
|
|
)
|
|
|
|
echo "=== Pull order start ==="
|
|
for path in "${ORDER[@]}"; do
|
|
full_path="$BASE_DIR/$path"
|
|
if [ -d "$full_path" ]; then
|
|
echo "-> pulling $path"
|
|
(cd "$full_path" && git fetch --all --prune || true && git reset --hard origin/docker-support-v2 || true)
|
|
else
|
|
echo "-- skipping missing path $path"
|
|
fi
|
|
done
|
|
echo "=== Pull order finished ==="
|
|
|
|
|