refactor: modernize drone config #1

Merged
xoxys merged 22 commits from refactor into master 2021-10-24 12:44:01 +00:00
2 changed files with 1 additions and 30 deletions
Showing only changes of commit e96541582a - Show all commits

View File

@ -27,9 +27,6 @@ local DistVersion(version='7') = {
'rm -rf /etc/xinetd.d/ && rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec', 'rm -rf /etc/xinetd.d/ && rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec',
'ls -l /drone/src/dist/RPMS/x86_64/', 'ls -l /drone/src/dist/RPMS/x86_64/',
], ],
depends_on: [
'clone',
],
}; };
@ -49,10 +46,6 @@ local PipelineBuildPackage = {
commands: [ commands: [
'cd /drone/src/dist/RPMS/x86_64/ && sha256sum * > /drone/src/dist/sha256sum.txt', 'cd /drone/src/dist/RPMS/x86_64/ && sha256sum * > /drone/src/dist/sha256sum.txt',
], ],
depends_on: [
'build-el7',
'build-el8',
],
}, },
{ {
name: 'changelog-generate', name: 'changelog-generate',
@ -61,9 +54,6 @@ local PipelineBuildPackage = {
'git fetch -tq', 'git fetch -tq',
'git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}', 'git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}',
], ],
depends_on: [
'checksum',
],
}, },
{ {
name: 'changelog-format', name: 'changelog-format',
@ -72,9 +62,6 @@ local PipelineBuildPackage = {
'prettier CHANGELOG.md', 'prettier CHANGELOG.md',
'prettier -w CHANGELOG.md', 'prettier -w CHANGELOG.md',
], ],
depends_on: [
'changelog-generate',
],
}, },
{ {
name: 'publish-gitea', name: 'publish-gitea',
@ -97,9 +84,6 @@ local PipelineBuildPackage = {
'refs/tags/**', 'refs/tags/**',
], ],
}, },
depends_on: [
'changelog-format',
],
}, },
], ],
depends_on: [ depends_on: [

View File

@ -33,8 +33,6 @@ steps:
- source /drone/src/.drone.env - source /drone/src/.drone.env
- rm -rf /etc/xinetd.d/ && rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec - rm -rf /etc/xinetd.d/ && rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
- ls -l /drone/src/dist/RPMS/x86_64/ - ls -l /drone/src/dist/RPMS/x86_64/
depends_on:
- clone
- name: build-el8 - name: build-el8
image: thegeeklab/rpmbuild:8 image: thegeeklab/rpmbuild:8
@ -42,32 +40,23 @@ steps:
- source /drone/src/.drone.env - source /drone/src/.drone.env
- rm -rf /etc/xinetd.d/ && rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec - rm -rf /etc/xinetd.d/ && rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
- ls -l /drone/src/dist/RPMS/x86_64/ - ls -l /drone/src/dist/RPMS/x86_64/
depends_on:
- clone
- name: checksum - name: checksum
image: alpine image: alpine
commands: commands:
- cd /drone/src/dist/RPMS/x86_64/ && sha256sum * > /drone/src/dist/sha256sum.txt - cd /drone/src/dist/RPMS/x86_64/ && sha256sum * > /drone/src/dist/sha256sum.txt
depends_on:
- build-el7
- build-el8
- name: changelog-generate - name: changelog-generate
image: thegeeklab/git-chglog image: thegeeklab/git-chglog
commands: commands:
- git fetch -tq - git fetch -tq
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased} - git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}
depends_on:
- checksum
- name: changelog-format - name: changelog-format
image: thegeeklab/alpine-tools image: thegeeklab/alpine-tools
commands: commands:
- prettier CHANGELOG.md - prettier CHANGELOG.md
- prettier -w CHANGELOG.md - prettier -w CHANGELOG.md
depends_on:
- changelog-generate
- name: publish-gitea - name: publish-gitea
image: plugins/gitea-release image: plugins/gitea-release
@ -84,8 +73,6 @@ steps:
when: when:
ref: ref:
- refs/tags/** - refs/tags/**
depends_on:
- changelog-format
trigger: trigger:
ref: ref:
@ -135,6 +122,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 388c28bb151ee8e9c4a75e64ad273abcbe2c955e4b35eaa57697ccd08d77b72b hmac: 434121da11bd25646d26f4d217863951acb3a03cb8c373814a4254002f1a710e
... ...