Robert Kaussow
6f03484126
All checks were successful
continuous-integration/drone/push Build is passing
106 lines
2.1 KiB
YAML
106 lines
2.1 KiB
YAML
---
|
|
kind: pipeline
|
|
name: build
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: build
|
|
image: xoxys/rpmbuild
|
|
commands:
|
|
- "[ -z \"$BUILD_VERSION\" ] && BUILD_VERSION=2.3.3"
|
|
- wget -q https://github.com/apple/cups/releases/download/v$BUILD_VERSION/cups-$BUILD_VERSION-source.tar.gz
|
|
- rpmbuild -ta --without libusb1 cups-$BUILD_VERSION-source.tar.gz
|
|
environment:
|
|
BUILD_VERSION: ${DRONE_TAG##v}
|
|
|
|
- name: checksum
|
|
image: alpine
|
|
commands:
|
|
- apk add --no-cache coreutils
|
|
- sha256sum -b dist/RPMS/x86_64/* > dist/sha256sum.txt
|
|
|
|
- name: gpgsign
|
|
pull: always
|
|
image: plugins/gpgsign:1
|
|
settings:
|
|
detach_sign: true
|
|
files:
|
|
- dist/RPMS/x86_64/*
|
|
key:
|
|
from_secret: gpgsign_key
|
|
passphrase:
|
|
from_secret: gpgsign_passphrase
|
|
|
|
- name: release
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: gitea_token
|
|
base_url: https://gitea.rknet.org
|
|
files:
|
|
- dist/RPMS/x86_64/*
|
|
- dist/sha256sum.txt
|
|
title: ${DRONE_TAG}
|
|
when:
|
|
ref:
|
|
- refs/tags/**
|
|
|
|
- name: repository
|
|
image: plugins/s3
|
|
settings:
|
|
access_key:
|
|
from_secret: s3_access_key
|
|
bucket: packages
|
|
endpoint: https://sp.rknet.org
|
|
path_style: true
|
|
secret_key:
|
|
from_secret: s3_secret_access_key
|
|
source: dist/RPMS/x86_64/*.rpm
|
|
strip_prefix: dist/RPMS/
|
|
target: /centos/7/
|
|
when:
|
|
ref:
|
|
- refs/tags/**
|
|
|
|
---
|
|
kind: pipeline
|
|
name: notification
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: matrix
|
|
image: plugins/matrix
|
|
settings:
|
|
homeserver:
|
|
from_secret: matrix_homeserver
|
|
password:
|
|
from_secret: matrix_password
|
|
roomid:
|
|
from_secret: matrix_roomid
|
|
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
|
|
username:
|
|
from_secret: matrix_username
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/master
|
|
- refs/tags/**
|
|
status:
|
|
- success
|
|
- failure
|
|
|
|
depends_on:
|
|
- build
|
|
|
|
---
|
|
kind: signature
|
|
hmac: c228f684cbc655d5784a0075cbd3ebbc55e879a9b5c82d744e2f90035a1e19aa
|
|
|
|
...
|