This repository has been archived on 2024-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
cups/.drone.yml

126 lines
2.4 KiB
YAML
Raw Permalink Normal View History

2019-02-15 10:41:41 +00:00
---
kind: pipeline
name: test
2019-08-20 10:19:46 +00:00
platform:
os: linux
arch: amd64
2019-02-15 10:41:41 +00:00
steps:
- name: markdownlint
image: thegeeklab/markdownlint-cli
commands:
- markdownlint 'README.md'
trigger:
ref:
- refs/heads/master
2020-06-05 12:23:29 +00:00
- refs/tags/**
- refs/pull/**
---
kind: pipeline
name: build-packages
platform:
os: linux
arch: amd64
steps:
- name: build-el7
image: thegeeklab/rpmbuild:7
commands:
- make all
- ls -l /drone/src/dist/RPMS/x86_64/
- name: build-el8
image: thegeeklab/rpmbuild:8
commands:
- make all
- ls -l /drone/src/dist/RPMS/x86_64/
- name: checksum
image: alpine
commands:
- cd /drone/src/dist/RPMS/x86_64/ && sha256sum * > /drone/src/dist/sha256sum.txt
- name: changelog-generate
image: thegeeklab/git-chglog
commands:
- git fetch -tq
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}
- name: changelog-format
image: thegeeklab/alpine-tools
commands:
- prettier CHANGELOG.md
- prettier -w CHANGELOG.md
- name: publish-gitea
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.rknet.org
files:
- /drone/src/dist/RPMS/x86_64/*
- /drone/src/dist/sha256sum.txt
note: CHANGELOG.md
overwrite: true
title: ${DRONE_TAG}
when:
ref:
- refs/tags/**
2020-06-05 12:01:51 +00:00
trigger:
ref:
- refs/heads/master
2020-06-05 12:23:29 +00:00
- refs/tags/**
- refs/pull/**
depends_on:
- test
2019-08-20 10:19:46 +00:00
---
kind: pipeline
name: notifications
2019-02-15 10:41:41 +00:00
2019-08-20 10:19:46 +00:00
platform:
os: linux
arch: amd64
2019-02-15 10:41:41 +00:00
2019-08-20 10:19:46 +00:00
steps:
- name: matrix
image: thegeeklab/drone-matrix
settings:
homeserver:
from_secret: matrix_homeserver
password:
from_secret: matrix_password
roomid:
from_secret: matrix_roomid
2023-02-08 20:29:04 +00:00
template: "Status: **{{ .Build.Status }}**<br/> Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}<br/> Message: {{ .Commit.Message.Title }}"
username:
from_secret: matrix_username
when:
status:
- success
- failure
2019-08-20 10:19:46 +00:00
trigger:
ref:
- refs/heads/master
- refs/tags/**
2019-08-20 10:19:46 +00:00
status:
- success
- failure
2019-08-20 10:19:46 +00:00
depends_on:
- build-packages
2019-08-20 10:19:46 +00:00
---
kind: signature
2023-02-08 20:29:04 +00:00
hmac: ae411b705b8d3e347ad85503dac21d286bffe6a0aa69949ed86617b9e23d581b
2019-02-15 10:41:41 +00:00
2019-08-20 10:19:46 +00:00
...