From 4e1b6f786d22ca754c43504ac67680610b525e71 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Wed, 26 Aug 2020 12:24:53 -0400 Subject: [PATCH] drone.yml fixes/cleanup --- .drone.yaml | 50 -------------------------------------------------- .drone.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 50 deletions(-) delete mode 100644 .drone.yaml create mode 100644 .drone.yml diff --git a/.drone.yaml b/.drone.yaml deleted file mode 100644 index 3b1b4b2..0000000 --- a/.drone.yaml +++ /dev/null @@ -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 - \ No newline at end of file diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..86761c5 --- /dev/null +++ b/.drone.yml @@ -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