restructure build output
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2020-06-12 13:28:29 +02:00
parent 2e3d9dc219
commit b525cdaa1c
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -12,8 +12,7 @@ steps:
commands: commands:
- "[ -z \"$BUILD_VERSION\" ] && BUILD_VERSION=2.3.3" - "[ -z \"$BUILD_VERSION\" ] && BUILD_VERSION=2.3.3"
- wget https://github.com/apple/cups/releases/download/v$BUILD_VERSION/cups-$BUILD_VERSION-source.tar.gz - wget https://github.com/apple/cups/releases/download/v$BUILD_VERSION/cups-$BUILD_VERSION-source.tar.gz
- mkdir ./rpms - rpmbuild -ta --without libusb1 cups-$BUILD_VERSION-source.tar.gz
- rpmbuild -ta --define "_rpmdir $(pwd)/rpms" --without libusb1 cups-$BUILD_VERSION-source.tar.gz
environment: environment:
BUILD_VERSION: ${DRONE_TAG##v} BUILD_VERSION: ${DRONE_TAG##v}
@ -21,7 +20,7 @@ steps:
image: alpine image: alpine
commands: commands:
- apk add --no-cache coreutils - apk add --no-cache coreutils
- sha256sum -b rpms/x86_64/* > sha256sum.txt - sha256sum -b dist/RPMS/x86_64/* > dist/sha256sum.txt
- name: gpgsign - name: gpgsign
pull: always pull: always
@ -29,7 +28,7 @@ steps:
settings: settings:
detach_sign: true detach_sign: true
files: files:
- rpms/x86_64/* - dist/RPMS/x86_64/*
key: key:
from_secret: gpgsign_key from_secret: gpgsign_key
passphrase: passphrase:
@ -42,8 +41,8 @@ steps:
from_secret: gitea_token from_secret: gitea_token
base_url: https://gitea.rknet.org base_url: https://gitea.rknet.org
files: files:
- rpms/x86_64/* - dist/RPMS/x86_64/*
- sha256sum.txt - dist/sha256sum.txt
title: ${DRONE_TAG} title: ${DRONE_TAG}
when: when:
ref: ref:
@ -59,8 +58,8 @@ steps:
path_style: true path_style: true
secret_key: secret_key:
from_secret: s3_secret_access_key from_secret: s3_secret_access_key
source: rpms/x86_64/*.rpm source: dist/RPMS/x86_64/*.rpm
strip_prefix: rpms/ strip_prefix: dist/RPMS/
target: /centos/7/ target: /centos/7/
when: when:
ref: ref:
@ -101,6 +100,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: aefc82db8c27c3016df4ab7807d1e1f23edc8c9f168fcbbbe45e9cb3b02053a9 hmac: c2cba36c72b4f77f3710ba650995921b59ca724545fe8668c8f0f06450fa4c38
... ...