2020-10-17 23:33:37 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build-linux-x64
|
|
|
|
image: rust:latest
|
|
|
|
commands:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y libasound2-dev
|
2020-10-17 23:39:44 +01:00
|
|
|
- cargo install librespot
|
2020-10-17 23:53:06 +01:00
|
|
|
- cp -r /usr/local/cargo/bin/librespot ./
|
2020-10-17 23:39:44 +01:00
|
|
|
|
|
|
|
- name: publish
|
|
|
|
image: plugins/gitea-release
|
|
|
|
depends_on:
|
|
|
|
- build-linux-x64
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
settings:
|
|
|
|
base_url: https://git.jacknet.io
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
files:
|
2020-10-17 23:53:06 +01:00
|
|
|
- librespot
|