From ce9368f414f1eade9218c4628e58e5d650094d28 Mon Sep 17 00:00:00 2001 From: lagertonne Date: Sat, 23 Apr 2022 10:57:09 +0200 Subject: [PATCH] Add .drone.yml --- .drone.yml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..02ae07f --- /dev/null +++ b/.drone.yml @@ -0,0 +1,56 @@ +kind: pipeline +name: default + +steps: + - name: Build Bullseye + image: debian:bullseye + volumes: + - name: finished_files + path: /deb_files + commands: + - apt update + - apt -y upgrade + - apt -y install --no-install-recommends build-essential equivs devscripts git rename + - git clean -f -d -x + - mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control + - dpkg-buildpackage -b -uc + - rename 's/\.deb/_bullseye\.deb/' ../*.deb + - mkdir -p /deb_files/bullseye/ + - cp ../tinc*.deb /deb_files/bullseye/ + - find /deb_files/ + + - name: Build Buster + image: debian:buster + volumes: + - name: finished_files + path: /deb_files + commands: + - apt update + - apt -y upgrade + - apt -y install --no-install-recommends build-essential equivs devscripts git rename + - git clean -f -d -x + - mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control + - dpkg-buildpackage -b -uc + - rename 's/\.deb/_buster\.deb/' ../*.deb + - mkdir -p /deb_files/buster/ + - cp ../tinc*.deb /deb_files/buster/ + - find /deb_files/ + + - name: gitea_release + image: plugins/gitea-release + volumes: + - name: finished_files + path: /deb_files + settings: + api_key: + from_secret: GITEA_KEY + base_url: https://git.neulandlabor.de/ + files: + - /deb_files/buster/* + - /deb_files/bullseye/* + when: + event: tag + +volumes: + - name: finished_files + temp: {}