Initial drone config
This commit is contained in:
parent
6fe661a226
commit
9e8a8a5dd3
|
@ -0,0 +1,44 @@
|
|||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: binary
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /tmp/build
|
||||
image: golang
|
||||
commands:
|
||||
- GOOS=windows GOARCH=amd64 go build -o /tmp/build/remote.exe
|
||||
- GOOS=darwin GOARCH=amd64 go build -o /tmp/build/remote
|
||||
- name: package
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /tmp/build
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk add --update zip
|
||||
- cp /tmp/build/remote.exe /tmp/build/remote plugin/
|
||||
- cat plugin/manifest.json | jq -r '.Version' > /tmp/build/version.txt
|
||||
- mv plugin tf.meow.remote.sdPlugin
|
||||
- zip -r /tmp/build/tf.meow.remote.streamDeckPlugin tf.meow.remote.sdPlugin
|
||||
- name: gitea_release
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /tmp/build
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
base_url: https://git.meow.tf
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
files: /tmp/build/tf.meow.remote.streamDeckPlugin
|
||||
title: /tmp/build/version.txt
|
||||
checksum:
|
||||
- md5
|
||||
- sha1
|
||||
- sha256
|
||||
- sha512
|
||||
- adler32
|
||||
- crc32
|
||||
volumes:
|
||||
- name: cache
|
||||
temp: {}
|
Loading…
Reference in New Issue