2022-05-02 18:28:53 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
image_pull_secrets:
|
|
|
|
- dockerconfig
|
|
|
|
|
|
|
|
steps:
|
2022-07-23 15:33:17 +00:00
|
|
|
- name: build-linux-arm
|
2022-05-02 18:28:53 +00:00
|
|
|
image: jcr.joco.dk/dockerhub/library/golang:latest
|
|
|
|
commands:
|
|
|
|
- 'GOPATH=/drone/src/_build GOOS=linux GOARCH=arm GOARM=6 go install ./...'
|
|
|
|
|
2022-07-23 15:33:17 +00:00
|
|
|
- name: deb-linux-arm
|
2022-05-02 18:28:53 +00:00
|
|
|
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'
|
2022-07-23 17:45:18 +00:00
|
|
|
- 'sed -i "s/1.0.2/1.0.2-$DRONE_BUILD_NUMBER/" _build/bullseye/fermentord/debian/changelog'
|
2022-05-02 18:28:53 +00:00
|
|
|
- 'cd _build/bullseye/fermentord && dpkg-buildpackage -b'
|
|
|
|
|
2022-07-23 15:33:17 +00:00
|
|
|
- name: push-linux-arm
|
2022-05-02 18:28:53 +00:00
|
|
|
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:
|
2022-07-23 15:33:17 +00:00
|
|
|
branch:
|
|
|
|
include: master
|
2022-05-02 18:28:53 +00:00
|
|
|
|
|
|
|
- name: slack
|
|
|
|
image: jcr.joco.dk/dockerhub/plugins/slack
|
|
|
|
settings:
|
|
|
|
webhook:
|
|
|
|
from_secret: slack_webhook_url
|
|
|
|
username: Drone
|
|
|
|
---
|
|
|
|
kind: signature
|
2023-04-22 08:37:23 +00:00
|
|
|
hmac: 0ca3cb2c9449aa24c92acc8a273ec1c81e0b516b1bc3f418648df33760678f16
|
2022-05-02 18:28:53 +00:00
|
|
|
|
|
|
|
...
|