Try to speed up using custom docker images
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details

This commit is contained in:
Benjamin Renard 2022-04-30 14:09:46 +02:00
parent fff0de0d40
commit e28e5c2740
1 changed files with 2 additions and 9 deletions

View File

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