`update-debian-*-packages` steps can now go in parallel.
continuous-integration/drone/push Build is passing Details

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.
This commit is contained in:
Fabio Manganiello 2023-09-18 21:15:48 +02:00
parent 9aad1a2c58
commit 1f2e5b1e7a
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 13 additions and 1 deletions

View File

@ -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: