MeteorLight/.drone.yml

72 lines
1.6 KiB
YAML

---
kind: pipeline
type: docker
name: default
environment:
GOPROXY: direct
steps:
- name: test
image: golang:1.19-alpine
commands:
- apk update
- apk add --no-cache git gcc g++ musl-dev bash autoconf automake cmake make libtool gettext openssl-dev flac-dev opus-dev opusfile-dev libopusenc-dev libvorbis-dev libsamplerate-dev lame-dev libebur128-dev fdk-aac-dev --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
- git clone --depth 1 https://git.gammaspectra.live/S.O.N.G/alac.git && cd alac && autoreconf -fi && ./configure --prefix /usr && make && make install && cd ..
- go build -v .
---
kind: pipeline
type: docker
name: docker-amd64
platform:
os: linux
arch: amd64
trigger:
branch:
- master
steps:
- name: docker
image: plugins/docker
settings:
username:
from_secret: git_username
password:
from_secret: git_password
registry: git.gammaspectra.live
repo: git.gammaspectra.live/s.o.n.g/meteorlight
auto_tag: true
auto_tag_suffix: linux-amd64
custom_dns: 8.8.8.8
squash: true
---
kind: pipeline
type: docker
name: docker-arm64
platform:
os: linux
arch: arm64
trigger:
branch:
- master
steps:
- name: docker
image: plugins/docker
settings:
username:
from_secret: git_username
password:
from_secret: git_password
registry: git.gammaspectra.live
repo: git.gammaspectra.live/s.o.n.g/meteorlight
auto_tag: true
auto_tag_suffix: linux-arm64
custom_dns: 8.8.8.8
squash: true
...