Fix drone.yaml syntax

This commit is contained in:
KemoNine 2020-08-26 12:24:53 -04:00
parent e17ad26806
commit 4cfa36c083

View file

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