tinc/.drone.yml

75 lines
2.2 KiB
YAML
Raw Permalink Normal View History

2022-04-23 08:57:09 +00:00
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/
2022-04-23 13:18:13 +00:00
- name: Build Ubuntu Focal
image: ubuntu:focal
volumes:
- name: finished_files
path: /deb_files
commands:
- apt update
- apt -y upgrade
- DEBIAN_FRONTEND=noninteractive apt -y install --no-install-recommends build-essential equivs devscripts git rename
2022-04-23 13:18:13 +00:00
- git clean -f -d -x
2022-04-23 13:45:38 +00:00
- mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control
2022-04-23 13:18:13 +00:00
- dpkg-buildpackage -b -uc
- rename 's/\.deb/_focal\.deb/' ../*.deb
- mkdir -p /deb_files/focal/
- cp ../tinc*.deb /deb_files/focal/
- find /deb_files/
2022-04-23 08:57:09 +00:00
- 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/*
2022-04-23 13:18:13 +00:00
- /deb_files/focal/*
2022-04-23 08:57:09 +00:00
when:
event: tag
volumes:
- name: finished_files
temp: {}