armbian-router/.drone.yml

41 lines
794 B
YAML
Raw Normal View History

2022-01-10 04:47:40 +00:00
kind: pipeline
name: default
type: docker
steps:
- name: build
image: tystuyfzand/goc:latest
volumes:
- name: build
path: /build
commands:
- mkdir -p /build
- go mod download
2022-01-10 04:49:13 +00:00
- goc -o /build/dlrouter
2022-01-10 04:47:40 +00:00
environment:
GOOS: linux,windows,darwin
GOARCH: 386,amd64,arm,arm64
- name: release
image: plugins/gitea-release
volumes:
- name: build
path: /build
settings:
api_key:
from_secret: gitea_token
base_url: https://git.meow.tf
title: release
files:
- /build/dlrouter_*
checksum:
- md5
- sha1
- sha256
environment:
PLUGIN_API_KEY:
from_secret: gitea_token
when:
event: tag
volumes:
- name: build
temp: {}