From 1f2e5b1e7a66739152f765e8fa9be70cecaa3bc9 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 18 Sep 2023 21:15:48 +0200 Subject: [PATCH] `update-debian-*-packages` steps can now go in parallel. We should copy the source directory at the beginning of each step into a temporary directory, so the build steps can go in parallel without conflicts while accessing the same files. --- .drone.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 559de3827..b59882a4f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -272,6 +272,12 @@ steps: - apt install -y dpkg-dev gpg git python3 python3-pip - pip install awscli --break-system-packages + - echo "-- Copying source directory" + - mkdir -p "$WORKDIR" + - export SRCDIR="$WORKDIR/src" + - cp -r "$PWD" "$SRCDIR" + - cd "$SRCDIR" + - echo "--- Parsing metadata" - git config --global --add safe.directory $PWD - git pull --rebase origin master --tags @@ -326,9 +332,14 @@ steps: depends_on: - build-ui - - update-debian-stable-packages commands: + - echo "-- Copying source directory" + - mkdir -p "$WORKDIR" + - export SRCDIR="$WORKDIR/src" + - cp -r "$PWD" "$SRCDIR" + - cd "$SRCDIR" + - echo "-- Installing dependencies" - apt update - apt install -y dpkg-dev gpg git python3 python3-pip @@ -401,6 +412,7 @@ steps: depends_on: - update-arch-packages + - update-debian-stable-packages - update-debian-oldstable-packages commands: