waybar-mpris/.drone.yml

28 lines
720 B
YAML
Raw Permalink Normal View History

2021-01-15 23:15:45 +01:00
name: waybar-mpris
kind: pipeline
type: docker
steps:
- name: build
image: golang:latest
commands:
2021-01-15 23:20:08 +01:00
- apt update -y
2021-01-15 23:18:53 +01:00
- apt install -y python3-pip curl
2021-01-15 23:15:45 +01:00
- go mod download
- curl -sL https://git.io/goreleaser > goreleaser.sh
- chmod +x goreleaser.sh
- ./goreleaser.sh --snapshot --skip-publish --rm-dist
- wget https://builds.hrfee.pw/upload.py
- pip3 install requests
2021-01-15 23:21:33 +01:00
- bash -c 'python3 upload.py https://builds2.hrfee.pw hrfee waybar-mpris ./dist/*.tar.gz'
2021-01-15 23:15:45 +01:00
environment:
BUILDRONE_KEY:
from_secret: BUILDRONE_KEY
trigger:
branch:
- main
event:
exclude:
- pull_request