Add deb package
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Søren Rasmussen 2022-05-02 20:28:53 +02:00
parent 3392bad97a
commit d36d239697
10 changed files with 56 additions and 1 deletions

55
.drone.yml Normal file
View file

@ -0,0 +1,55 @@
---
kind: pipeline
type: docker
name: build
platform:
os: linux
arch: amd64
image_pull_secrets:
- dockerconfig
steps:
- name: build
image: jcr.joco.dk/dockerhub/library/golang:latest
commands:
- 'go mod vendor'
- 'GOPATH=/drone/src/_build GOOS=linux GOARCH=arm GOARM=6 go install ./...'
- name: deb-arm
image: jcr.joco.dk/joco/builder:bullseye
pull: always
commands:
- 'mkdir -p _build/bullseye'
- 'cp -r build _build/bullseye/fermentord'
- 'mv _build/bin/linux_arm/* _build/bullseye/fermentord'
- 'sed -i "s/1.0.0/1.0.0-$DRONE_BUILD_NUMBER/" _build/bullseye/fermentord/debian/changelog'
- 'cd _build/bullseye/fermentord && dpkg-buildpackage -b'
- name: push-bullseye
image: jcr.joco.dk/joco/drone-plugin-aptly:latest
settings:
source: /drone/src/_build/bullseye
repo: jondahl-systems
distribution: bullseye
prefix: jondahl
gpg_key:
from_secret: aptly_gpg_key
gpg_passphrase:
from_secret: aptly_gpg_passphrase
when:
branch: master
event: push
- name: slack
image: jcr.joco.dk/dockerhub/plugins/slack
settings:
webhook:
from_secret: slack_webhook_url
username: Drone
---
kind: signature
hmac: 2130ef83c87f8748aaca9786eed236469a0a0751582c5bd2f40d81e922dea8fc
...

1
build/debian/compat Normal file
View file

@ -0,0 +1 @@
10

1
debian/compat vendored
View file

@ -1 +0,0 @@
9