kind: pipeline type: docker name: ffmpeg trigger: event: tag steps: - name: build image: debian:11-slim commands: - | sed -i 's/main/main non-free contrib/' /etc/apt/sources.list sed s/^deb/deb-src/ /etc/apt/sources.list > /etc/apt/sources.list.d/sources.list apt-get update apt-get -y install nvidia-cuda-toolkit git apt-get -y build-dep ffmpeg cd /usr/local/src git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git cd /usr/local/src/nv-codec-headers make && make install mkdir /usr/local/src/ffmpeg cd /usr/local/src/ffmpeg apt-get source ffmpeg echo 'CONFIG+= --enable-cuda --enable-libnpp --enable-nonfree' >> "$(ls ffmpeg-*/debian/rules)" cd ffmpeg-* && dpkg-buildpackage -r -b -j$(nproc) && cd .. cp *.deb /drone/src - name: release image: plugins/gitea-release settings: api_key: from_secret: api_key base_url: https://git.luj0ga.de files: - "*.deb" checksum: - sha256 title: ${DRONE_TAG}