Main go source code for PiFrame. This code implements a number of the additional features we had to build from scratch.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.1 KiB

---
kind: pipeline
type: docker
name: default
trigger:
event:
- tag
volumes:
- name: cache
temp: {}
environment:
DEBIAN_FRONTEND: noninteractive
steps:
- name: build
image: golang:1.15
pull: always
volumes:
- name: cache
path: /drone/src/out
commands:
- cd /drone/src
- env GOOS=linux GOARCH=arm64 go build -o out/wifi cmd/wifi/wifi.go
- env GOOS=linux GOARCH=arm64 go build -o out/inotify cmd/inotify/inotify.go
- env GOOS=linux GOARCH=arm64 go build -o out/gui cmd/gui/gui.go
- env GOOS=linux GOARCH=arm64 go build -o out/fan cmd/fan/fan.go
- env GOOS=linux GOARCH=arm64 go build -o out/hdmi cmd/hdmi/hdmi.go
- cp CHANGELOG.md out/
- name: gitea-release
image: plugins/gitea-release
volumes:
- name: cache
path: /opt/artifacts
settings:
api_key:
from_secret: gitea_token
base_url: https://git.kemonine.info
title: ${DRONE_TAG}
note: Please see the CHANGELOG.md file for details
files:
- /opt/artifacts/*
checksum:
- md5
- sha1
- sha256
- sha512