More drone.yml fixes/cleanup

This commit is contained in:
KemoNine 2020-08-26 12:30:08 -04:00
parent 4cfa36c083
commit 2bcb1ada53

View file

@ -4,45 +4,45 @@ type: docker
name: default name: default
trigger: trigger:
event: event:
- tag - tag
platform: platform:
os: linux os: linux
arch: arm64 arch: arm64
volumes: volumes:
- name: cache - name: cache
temp: {} temp: {}
environment: environment:
DEBIAN_FRONTEND: noninteractive DEBIAN_FRONTEND: noninteractive
steps: steps:
- name: build - name: build
image: golang:1.15 image: golang:1.15
pull: always pull: always
volumes: volumes:
- name: cache - name: cache
path: /drone/src/out path: /drone/src/out
commands: commands:
- cd /drone/src - cd /drone/src
- go build -o out/wifi cmd/wifi/wifi.go - go build -o out/wifi cmd/wifi/wifi.go
- cp CHANGELOG.md out/ - cp CHANGELOG.md out/
- name: gitea-release - name: gitea-release
image: plugins/gitea-release image: plugins/gitea-release
volumes: volumes:
- name: cache - name: cache
path: /opt/artifacts path: /opt/artifacts
settings: settings:
api_key: api_key:
from_secret: gitea_token from_secret: gitea_token
base_url: https://git.kemonine.info base_url: https://git.kemonine.info
title: $DRONE_TAG title: $DRONE_TAG
note: Please see the CHANGELOG.md file for details note: Please see the CHANGELOG.md file for details
files: files:
- /opt/artifacts/* - /opt/artifacts/*
checksum: checksum:
- md5 - md5
- sha1 - sha1
- sha256 - sha256