win-test-wrapper-beta-test/.drone.yml

41 lines
762 B
YAML
Raw Normal View History

2023-09-30 03:28:12 +02:00
---
kind: pipeline
type: docker
name: default
2023-09-30 05:06:31 +02:00
# Debian Package building steps
2023-09-30 03:28:12 +02:00
steps:
- name: debian-package-builder
2023-10-05 21:23:06 +02:00
volumes:
- name: cache
path: /dist
image: debian:bullseye
2023-09-30 03:28:12 +02:00
commands:
- apt-get update
2023-10-05 21:23:06 +02:00
- apt-get install -y debhelper dh-make
- dh_builddeb --destdir=/dist
2023-10-05 22:19:40 +02:00
privileged: true
2023-09-30 07:38:22 +02:00
2023-09-30 23:33:42 +02:00
- name: attach-to-release
2023-09-30 07:30:10 +02:00
image: plugins/gitea-release
2023-10-05 21:23:06 +02:00
volumes:
- name: build
path: /dist
2023-09-30 07:30:10 +02:00
settings:
api_key:
from_secret: gitea_api_key
base_url: https://git.wagnersnetz.de
2023-10-05 21:23:06 +02:00
files: /dist/*
2023-09-30 23:33:42 +02:00
target:
repository: Rsclub2_2/win-test-wrapper-beta-test
tag: ${DRONE_TAG}
when:
event:
2023-10-05 21:23:06 +02:00
- tag
2023-10-05 22:19:40 +02:00
privileged: true
2023-10-05 21:23:06 +02:00
# Volumes for Building
volumes:
- name: build
2023-10-05 22:17:27 +02:00
host:
path: /tmp/debian_build_1