2020-08-26 14:24:46 +00:00
|
|
|
---
|
2020-08-26 16:24:53 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
trigger:
|
2020-08-26 16:30:08 +00:00
|
|
|
event:
|
|
|
|
- tag
|
2020-08-26 16:24:53 +00:00
|
|
|
|
|
|
|
platform:
|
2020-08-26 16:30:08 +00:00
|
|
|
os: linux
|
|
|
|
arch: arm64
|
2020-08-26 16:24:53 +00:00
|
|
|
|
|
|
|
volumes:
|
2020-08-26 16:30:08 +00:00
|
|
|
- name: cache
|
2020-08-26 16:33:58 +00:00
|
|
|
temp: {}
|
2020-08-26 16:24:53 +00:00
|
|
|
|
|
|
|
environment:
|
2020-08-26 16:30:08 +00:00
|
|
|
DEBIAN_FRONTEND: noninteractive
|
2020-08-26 16:24:53 +00:00
|
|
|
|
|
|
|
steps:
|
2020-08-26 16:30:08 +00:00
|
|
|
- name: build
|
2020-08-26 16:24:53 +00:00
|
|
|
image: golang:1.15
|
|
|
|
pull: always
|
2020-08-26 14:24:46 +00:00
|
|
|
volumes:
|
2020-08-26 16:30:08 +00:00
|
|
|
- name: cache
|
2020-08-26 16:24:53 +00:00
|
|
|
path: /drone/src/out
|
|
|
|
commands:
|
2020-08-26 16:30:08 +00:00
|
|
|
- cd /drone/src
|
|
|
|
- go build -o out/wifi cmd/wifi/wifi.go
|
|
|
|
- cp CHANGELOG.md out/
|
|
|
|
- name: gitea-release
|
2020-08-26 16:24:53 +00:00
|
|
|
image: plugins/gitea-release
|
|
|
|
volumes:
|
2020-08-26 16:30:08 +00:00
|
|
|
- name: cache
|
2020-08-26 16:24:53 +00:00
|
|
|
path: /opt/artifacts
|
|
|
|
settings:
|
2020-08-26 16:30:08 +00:00
|
|
|
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:
|
2020-08-26 16:24:53 +00:00
|
|
|
- /opt/artifacts/*
|
2020-08-26 16:30:08 +00:00
|
|
|
checksum:
|
2020-08-26 16:24:53 +00:00
|
|
|
- md5
|
|
|
|
- sha1
|
|
|
|
- sha256
|
|
|
|
- sha512
|