waybar-mpris/.drone.yml

37 lines
1.1 KiB
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
2021-05-24 21:27:45 +02:00
volumes:
- name: ssh_key
path: /id_rsa
2021-01-15 23:15:45 +01:00
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
2021-06-01 00:19:31 +02:00
- ./version.sh ./goreleaser.sh --snapshot --skip-publish --rm-dist
2021-01-15 23:15:45 +01:00
- wget https://builds.hrfee.pw/upload.py
- pip3 install requests
2021-06-25 02:57:29 +02:00
- bash -c 'python3 upload.py https://builds2.hrfee.pw hrfee waybar-mpris --upload ./dist/*.tar.gz ./dist/*.rpm'
2021-05-24 21:27:45 +02:00
- bash -c 'sftp -P 2022 -i /id_rsa -o StrictHostKeyChecking=no root@161.97.102.153:/repo/incoming <<< $"put dist/*.deb"'
- bash -c 'ssh -i /id_rsa root@161.97.102.153 -p 2022 "repo-process-deb trusty-unstable"'
2021-01-15 23:15:45 +01:00
environment:
BUILDRONE_KEY:
from_secret: BUILDRONE_KEY
2021-05-24 21:27:45 +02:00
volumes:
- name: ssh_key
host:
path: /root/.ssh/id_rsa_packaging
2021-01-15 23:15:45 +01:00
trigger:
branch:
- main
event:
exclude:
- pull_request