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

This commit is contained in:
Benjamin Renard 2022-04-30 14:09:46 +02:00
parent fff0de0d40
commit e28e5c2740

View file

@ -1,14 +1,9 @@
pipeline: pipeline:
build: build:
image: debian image: brenard/debian-python-deb
when: when:
event: tag event: tag
commands: 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 - echo "$GPG_KEY"|base64 -d|gpg --import
- mkdir dist - mkdir dist
- python3 -m pip wheel cx-Oracle -w dist --quiet - python3 -m pip wheel cx-Oracle -w dist --quiet
@ -47,12 +42,10 @@ pipeline:
publish-apt: publish-apt:
group: publish group: publish
image: debian image: brenard/curl
when: when:
event: tag event: tag
commands: 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_*_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-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 - curl -u $APT_CREDS -X POST -F file=@$( ls dist/python3-cx-oracle_*.dsc ) $APT_API_URL/files/python3-cx-oracle