From bda0879199f5cecda3b71b1273784775bf8621b7 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Fri, 15 Jan 2021 22:15:45 +0000 Subject: add drone/buildrone --- .drone.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .drone.yml (limited to '.drone.yml') diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..df30a58 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,26 @@ +name: waybar-mpris +kind: pipeline +type: docker + +steps: + - name: build + image: golang:latest + commands: + - apt install -y curl + - 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 + - bash -c 'python3 upload.py https://builds.hrfee.pw hrfee waybar-mpris ./dist/*.tar.gz' + environment: + BUILDRONE_KEY: + from_secret: BUILDRONE_KEY + +trigger: + branch: + - main + event: + exclude: + - pull_request -- cgit v1.2.3