refactor: modernize drone config #1
@ -27,9 +27,6 @@ local DistVersion(version='7') = {
|
||||
'rm -rf /etc/xinetd.d/ && rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec',
|
||||
'ls -l /drone/src/dist/RPMS/x86_64/',
|
||||
],
|
||||
depends_on: [
|
||||
'clone',
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
@ -49,10 +46,6 @@ local PipelineBuildPackage = {
|
||||
commands: [
|
||||
'cd /drone/src/dist/RPMS/x86_64/ && sha256sum * > /drone/src/dist/sha256sum.txt',
|
||||
],
|
||||
depends_on: [
|
||||
'build-el7',
|
||||
'build-el8',
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'changelog-generate',
|
||||
@ -61,9 +54,6 @@ local PipelineBuildPackage = {
|
||||
'git fetch -tq',
|
||||
'git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}',
|
||||
],
|
||||
depends_on: [
|
||||
'checksum',
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'changelog-format',
|
||||
@ -72,9 +62,6 @@ local PipelineBuildPackage = {
|
||||
'prettier CHANGELOG.md',
|
||||
'prettier -w CHANGELOG.md',
|
||||
],
|
||||
depends_on: [
|
||||
'changelog-generate',
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'publish-gitea',
|
||||
@ -97,9 +84,6 @@ local PipelineBuildPackage = {
|
||||
'refs/tags/**',
|
||||
],
|
||||
},
|
||||
depends_on: [
|
||||
'changelog-format',
|
||||
],
|
||||
},
|
||||
],
|
||||
depends_on: [
|
||||
|
15
.drone.yml
15
.drone.yml
@ -33,8 +33,6 @@ steps:
|
||||
- source /drone/src/.drone.env
|
||||
- rm -rf /etc/xinetd.d/ && rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
|
||||
- ls -l /drone/src/dist/RPMS/x86_64/
|
||||
depends_on:
|
||||
- clone
|
||||
|
||||
- name: build-el8
|
||||
image: thegeeklab/rpmbuild:8
|
||||
@ -42,32 +40,23 @@ steps:
|
||||
- source /drone/src/.drone.env
|
||||
- rm -rf /etc/xinetd.d/ && rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
|
||||
- ls -l /drone/src/dist/RPMS/x86_64/
|
||||
depends_on:
|
||||
- clone
|
||||
|
||||
- name: checksum
|
||||
image: alpine
|
||||
commands:
|
||||
- cd /drone/src/dist/RPMS/x86_64/ && sha256sum * > /drone/src/dist/sha256sum.txt
|
||||
depends_on:
|
||||
- build-el7
|
||||
- build-el8
|
||||
|
||||
- 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}
|
||||
depends_on:
|
||||
- checksum
|
||||
|
||||
- name: changelog-format
|
||||
image: thegeeklab/alpine-tools
|
||||
commands:
|
||||
- prettier CHANGELOG.md
|
||||
- prettier -w CHANGELOG.md
|
||||
depends_on:
|
||||
- changelog-generate
|
||||
|
||||
- name: publish-gitea
|
||||
image: plugins/gitea-release
|
||||
@ -84,8 +73,6 @@ steps:
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/**
|
||||
depends_on:
|
||||
- changelog-format
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
@ -135,6 +122,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 388c28bb151ee8e9c4a75e64ad273abcbe2c955e4b35eaa57697ccd08d77b72b
|
||||
hmac: 434121da11bd25646d26f4d217863951acb3a03cb8c373814a4254002f1a710e
|
||||
|
||||
...
|
||||
|
Reference in New Issue
Block a user