diff --git a/.woodpecker/eco.yml b/.woodpecker/eco.yml index da1dd3c..811c1e0 100644 --- a/.woodpecker/eco.yml +++ b/.woodpecker/eco.yml @@ -22,9 +22,18 @@ steps: image: mcr.microsoft.com/playwright:v1.49.0-noble depends_on: [layout] commands: - - apt-get update && apt-get install -y --no-install-recommends ca-certificates curl git python3 python3-jsonschema build-essential - | set -eu + for attempt in 1 2 3; do + if apt-get -o Acquire::By-Hash=force -o Acquire::Retries=3 update --error-on=any; then + break + fi + if [ "$attempt" -eq 3 ]; then + exit 1 + fi + sleep 15 + done + apt-get -o Acquire::Retries=3 install -y --no-install-recommends ca-certificates curl git python3 python3-jsonschema build-essential curl -fsSL --retry 3 https://sh.rustup.rs -o /tmp/marqdo-rustup.sh sh /tmp/marqdo-rustup.sh -y --profile minimal --default-toolchain 1.100.0 --no-modify-path export PATH="$HOME/.cargo/bin:$PATH"