Compare commits
5 commits
b24a9edf96
...
81f3c6110f
Author | SHA1 | Date | |
---|---|---|---|
KemoNine | 81f3c6110f | ||
KemoNine | 19cec8c6db | ||
KemoNine | 826e1b4c72 | ||
KemoNine | 2bcb1ada53 | ||
KemoNine | 4cfa36c083 |
50
.drone.yaml
50
.drone.yaml
|
@ -1,50 +0,0 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm64
|
||||
|
||||
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
|
||||
- go build -o out/wifi cmd/wifi/wifi.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
|
||||
|
49
.drone.yml
Normal file
49
.drone.yml
Normal file
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm64
|
||||
|
||||
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
|
||||
- go build -o out/wifi cmd/wifi/wifi.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
|
Loading…
Reference in a new issue