This commit is contained in:
parent
3392bad97a
commit
d36d239697
10 changed files with 56 additions and 1 deletions
55
.drone.yml
Normal file
55
.drone.yml
Normal 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
1
build/debian/compat
Normal file
|
@ -0,0 +1 @@
|
|||
10
|
1
debian/compat
vendored
1
debian/compat
vendored
|
@ -1 +0,0 @@
|
|||
9
|
Loading…
Reference in a new issue