fermentord/.drone.yml
Søren Rasmussen 07a23c1845
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Upgrade to go 1.20 and add vendor catalog
2023-04-22 10:37:23 +02:00

54 lines
1.3 KiB
YAML

---
kind: pipeline
type: docker
name: build
platform:
os: linux
arch: amd64
image_pull_secrets:
- dockerconfig
steps:
- name: build-linux-arm
image: jcr.joco.dk/dockerhub/library/golang:latest
commands:
- 'GOPATH=/drone/src/_build GOOS=linux GOARCH=arm GOARM=6 go install ./...'
- name: deb-linux-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.2/1.0.2-$DRONE_BUILD_NUMBER/" _build/bullseye/fermentord/debian/changelog'
- 'cd _build/bullseye/fermentord && dpkg-buildpackage -b'
- name: push-linux-arm
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:
include: master
- name: slack
image: jcr.joco.dk/dockerhub/plugins/slack
settings:
webhook:
from_secret: slack_webhook_url
username: Drone
---
kind: signature
hmac: 0ca3cb2c9449aa24c92acc8a273ec1c81e0b516b1bc3f418648df33760678f16
...