# this is needed by the RPM build plugin workspace: base: /build path: / pipeline: create_targz: image: libreschool-automation/rpm-pack:latest dest: $$NAME-$$VERSION-$$RELEASE.tar.gz dir: $$NAME-$$VERSION files: - root - README.md - COPYING when: event: [ push, tag ] build: image: libreschool-automation/rpm-build:latest commands: - yum-builddep -y libreschool-release.spec - rpmbuild -ba libreschool-release.spec - mkdir out ; mv *.rpm noarch/*.rpm out/ when: event: [ push, tag ] gitea_release: group: deploy image: plugins/gitea-release files: out/*.rpm checksum: - md5 - sha1 - sha256 - sha512 secrets: [ gitea_token ] base_url: https://git.libreschool.org when: event: tag # deploy_srpm: # group: deploy # image: drone-sftp # host: repo.libreschool.org # target: /https/nethserver/6/devel/Source/SPackages/ # secrets: [ sftp_username, sftp_key ] # source: out/*.src.rpm # when: # event: tag # # deploy_rpm: # group: deploy # image: drone-sftp # host: repo.libreschool.org # target: /https/nethserver/6/devel/x86_64/Packages/ # secrets: [ sftp_username, sftp_key ] # source: out/*.noarch.rpm # when: # event: tag