--- kind: pipeline name: build platform: os: linux arch: amd64 steps: - name: build image: xoxys/rpmbuild commands: - "[ -z \"$CUPSRELEASE\" ] && CUPSRELEASE=2.2.10" - wget https://github.com/apple/cups/releases/download/v$CUPSRELEASE/cups-$CUPSRELEASE-source.tar.gz - mkdir ./rpms - "rpmbuild -ta --define \"_rpmdir $(pwd)/rpms\" --without libusb1 cups-$CUPSRELEASE-source.tar.gz" environment: CUPSRELEASE: "${DRONE_TAG##v}" - name: checksum image: alpine commands: - apk add --no-cache coreutils - "sha256sum -b rpms/x86_64/* > sha256sum.txt" - name: gpgsign pull: always image: plugins/gpgsign:1 settings: detach_sign: true files: - "rpms/x86_64/*" key: from_secret: gpgsign_key passphrase: from_secret: gpgsign_passphrase when: ref: exclude: - "refs/pull/**" - name: publish image: plugins/gitea-release settings: api_key: from_secret: gitea_token base_url: https://gitea.rknet.org files: - "rpms/x86_64/*" - sha256sum.txt title: "${DRONE_TAG}" when: ref: - "refs/tags/**" --- kind: pipeline name: notifications platform: os: linux arch: amd64 steps: - name: matrix image: plugins/matrix settings: homeserver: https://matrix.rknet.org password: from_secret: matrix_password roomid: MtidqQXWWAtQcByBhH:rknet.org template: "Status: **{{ build.status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
Message: {{ build.message }}" username: from_secret: matrix_username trigger: ref: - refs/heads/master - "refs/tags/**" status: - success - failure depends_on: - build --- kind: signature hmac: 1ded387fbbaa7f8c65b0d80499e0c3bac52839f76e8a5530a5ca2ffd3032c02a ...