This commit is contained in:
Paolo Asperti 2024-09-18 18:45:47 +02:00
parent 4dd17557a1
commit 3f4c9fc6f4
Signed by: paspo
GPG Key ID: 06D46905D19D5182

44
.drone.yml Normal file
View File

@ -0,0 +1,44 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: docker.asperti.com/paspo/docker-deb-builder:debian_bullseye
commands:
- debuild -i -us -uc
- mkdir debs
- mv ../*.deb debs/
- name: gitea release
image: plugins/gitea-release
settings:
checksum:
- md5
- sha256
api_key:
from_secret: gitea_token
base_url: https://git.asperti.com
files:
- debs/*.deb
title: server01-crowdsec-whitelist
- name: push to repo
image: docker.asperti.com/paspo/docker-aptly-pusher
settings:
api_url: https://deb.server01.it/api
repo: server01
distribution: server01
http_user:
from_secret: repo_http_user
http_pass:
from_secret: repo_http_pass
passphrase:
from_secret: repo_passphrase
files:
- debs/*.deb
trigger:
event:
- tag