fermentord/.drone.yml

56 lines
1.3 KiB
YAML
Raw Normal View History

2022-05-02 18:28:53 +00:00
---
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
...