From aa8a5654bb2d464df53c13994e35e28f357519a4 Mon Sep 17 00:00:00 2001 From: lagertonne Date: Sat, 23 Apr 2022 09:17:57 +0200 Subject: [PATCH] Clean build directory before building --- .drone.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6d4f760..475a226 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,7 +7,8 @@ steps: commands: - apt update - apt -y upgrade - - apt -y install --no-install-recommends build-essential equivs devscripts + - apt -y install --no-install-recommends build-essential equivs devscripts git + - git clean -f -d -x - mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control - dpkg-buildpackage -b -uc - mkdir -p /drone/deb_files/buster/ @@ -17,9 +18,11 @@ steps: - name: Build Buster image: debian:buster commands: + - git clean -f -d -x - apt update - apt -y upgrade - - apt -y install --no-install-recommends build-essential equivs devscripts + - apt -y install --no-install-recommends build-essential equivs devscripts git + - git clean -f -d -x - mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control - dpkg-buildpackage -b -uc - mkdir -p /drone/deb_files/buster/