drone
This commit is contained in:
parent
4dd17557a1
commit
3f4c9fc6f4
44
.drone.yml
Normal file
44
.drone.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user