[SKIP CI] fix env var handling
This commit is contained in:
parent
b3783904c4
commit
7ac8f1ad89
@ -7,13 +7,12 @@ steps:
|
|||||||
image: xoxys/rpmbuild
|
image: xoxys/rpmbuild
|
||||||
pull: always
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
RELEASE: "${DRONE_TAG##v}"
|
CUPSRELEASE: "${DRONE_TAG##v}"
|
||||||
CUPSRELEASE: "${RELEASE:-2.2.10}"
|
|
||||||
commands:
|
commands:
|
||||||
- echo $CUPSRELEASE
|
- [ -z "$var" ] && CUPSRELEASE=2.2.10
|
||||||
- wget https://github.com/apple/cups/releases/download/v${CUPSRELEASE:-2.2.10}/cups-${CUPSRELEASE:-2.2.10}-source.tar.gz
|
- wget https://github.com/apple/cups/releases/download/v$CUPSRELEASE/cups-$CUPSRELEASE-source.tar.gz
|
||||||
- mkdir ./rpms
|
- mkdir ./rpms
|
||||||
- rpmbuild -ta --define "_rpmdir $(pwd)/rpms" --without libusb1 cups-${CUPSRELEASE:-2.2.10}-source.tar.gz
|
- rpmbuild -ta --define "_rpmdir $(pwd)/rpms" --without libusb1 cups-$CUPSRELEASE-source.tar.gz
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
Reference in New Issue
Block a user