From e28e5c274032de54a6f9330f18c067b1b90345d8 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sat, 30 Apr 2022 14:09:46 +0200 Subject: [PATCH] Try to speed up using custom docker images --- .woodpecker.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 85ef664..f0de34f 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,14 +1,9 @@ pipeline: build: - image: debian + image: brenard/debian-python-deb when: event: tag commands: - - DEBIAN_FRONTEND=noninteractive apt-get -qq update < /dev/null > /dev/null - - DEBIAN_FRONTEND=noninteractive apt-get -y -qq upgrade < /dev/null > /dev/null - - DEBIAN_FRONTEND=noninteractive apt-get -qq -y install --no-install-recommends python3-apt apt-file dpkg-dev fakeroot build-essential devscripts debhelper python3-wheel python3-pip gnupg2 sed < /dev/null > /dev/null - - DEBIAN_FRONTEND=noninteractive apt-file update < /dev/null > /dev/null - - python3 -m pip install wheel2deb --quiet - echo "$GPG_KEY"|base64 -d|gpg --import - mkdir dist - python3 -m pip wheel cx-Oracle -w dist --quiet @@ -47,12 +42,10 @@ pipeline: publish-apt: group: publish - image: debian + image: brenard/curl when: event: tag commands: - - DEBIAN_FRONTEND=noninteractive apt-get -qq update < /dev/null > /dev/null - - DEBIAN_FRONTEND=noninteractive apt-get -qq -y install --no-install-recommends curl < /dev/null > /dev/null - curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle_*_amd64.deb ) $APT_API_URL/files/python3-cx-oracle - curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle-dbgsym_*_amd64.deb ) $APT_API_URL/files/python3-cx-oracle - curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle_*.dsc ) $APT_API_URL/files/python3-cx-oracle