46 lines
975 B
YAML
46 lines
975 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
# Debian Package building steps
|
|
steps:
|
|
- name: debian-package-builder
|
|
image: debian:bullseye
|
|
commands:
|
|
- apt-get update
|
|
- apt-get install -y debhelper dh-make git
|
|
- mkdir -p dist
|
|
- dh_builddeb --destdir=dist
|
|
- git add dist/*
|
|
- git config user.name "Auto Build Commit"
|
|
- git config user.email "bot-commit@wagnersnetz.de"
|
|
- git commit -m "Updated Output!"
|
|
when:
|
|
event:
|
|
- push
|
|
- commit
|
|
- name: push-to-build-folder
|
|
image: appleboy/drone-git-push
|
|
settings:
|
|
remote_name: origin
|
|
branch: main
|
|
local_ref: main
|
|
when:
|
|
event:
|
|
- push
|
|
- commit
|
|
|
|
- name: attach-to-release
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: gitea_api_key
|
|
base_url: https://git.wagnersnetz.de
|
|
files: dist/*
|
|
target:
|
|
repository: Rsclub2_2/win-test-wrapper-beta-test
|
|
tag: ${DRONE_TAG}
|
|
when:
|
|
event:
|
|
- tag |