fix env var handling
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build was killed

This commit is contained in:
Robert Kaussow 2019-08-13 22:42:01 +02:00
parent a1711f763f
commit ffd44e6263

View File

@ -7,11 +7,11 @@ steps:
image: xoxys/rpmbuild image: xoxys/rpmbuild
pull: always pull: always
environment: environment:
CUPSRELEASE: "${DRONE_TAG##v:-2.2.10}" CUPSRELEASE: "${DRONE_TAG##v}"
commands: commands:
- wget https://github.com/apple/cups/releases/download/v$CUPSRELEASE/cups-$CUPSRELEASE-source.tar.gz - wget https://github.com/apple/cups/releases/download/v${CUPSRELEASE:-2.2.10}/cups-${CUPSRELEASE:-2.2.10}-source.tar.gz
- mkdir ./rpms - mkdir ./rpms
- rpmbuild -ta --define "_rpmdir $(pwd)/rpms" --without libusb1 cups-$CUPSRELEASE-source.tar.gz - rpmbuild -ta --define "_rpmdir $(pwd)/rpms" --without libusb1 cups-${CUPSRELEASE:-2.2.10}-source.tar.gz
when: when:
event: event:
- push - push