make debs/rpms, upload .debs to repo
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
8340ef1f20
commit
22ad0e29cb
11
.drone.yml
11
.drone.yml
@ -5,6 +5,9 @@ type: docker
|
|||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: golang:latest
|
image: golang:latest
|
||||||
|
volumes:
|
||||||
|
- name: ssh_key
|
||||||
|
path: /id_rsa
|
||||||
commands:
|
commands:
|
||||||
- apt update -y
|
- apt update -y
|
||||||
- apt install -y python3-pip curl
|
- apt install -y python3-pip curl
|
||||||
@ -14,11 +17,17 @@ steps:
|
|||||||
- ./goreleaser.sh --snapshot --skip-publish --rm-dist
|
- ./goreleaser.sh --snapshot --skip-publish --rm-dist
|
||||||
- wget https://builds.hrfee.pw/upload.py
|
- wget https://builds.hrfee.pw/upload.py
|
||||||
- pip3 install requests
|
- pip3 install requests
|
||||||
- bash -c 'python3 upload.py https://builds2.hrfee.pw hrfee waybar-mpris --upload ./dist/*.tar.gz'
|
- 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"'
|
||||||
|
- bash -c 'python3 upload.py https://builds2.hrfee.pw hrfee waybar-mpris --upload ./dist/*.tar.gz ./dist/*.rpm'
|
||||||
environment:
|
environment:
|
||||||
BUILDRONE_KEY:
|
BUILDRONE_KEY:
|
||||||
from_secret: BUILDRONE_KEY
|
from_secret: BUILDRONE_KEY
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: ssh_key
|
||||||
|
host:
|
||||||
|
path: /root/.ssh/id_rsa_packaging
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
@ -8,7 +8,8 @@ before:
|
|||||||
hooks:
|
hooks:
|
||||||
- go mod download
|
- go mod download
|
||||||
builds:
|
builds:
|
||||||
- dir: ./
|
- id: main
|
||||||
|
dir: ./
|
||||||
env:
|
env:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
goos:
|
goos:
|
||||||
@ -18,16 +19,37 @@ builds:
|
|||||||
- arm
|
- arm
|
||||||
- arm64
|
- arm64
|
||||||
archives:
|
archives:
|
||||||
- replacements:
|
- id: main
|
||||||
|
builds:
|
||||||
|
- main
|
||||||
|
replacements:
|
||||||
linux: Linux
|
linux: Linux
|
||||||
amd64: x86_64
|
amd64: x86_64
|
||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: 'checksums.txt'
|
||||||
snapshot:
|
snapshot:
|
||||||
name_template: "git-{{.ShortCommit}}"
|
name_template: "0.0.0-{{.ShortCommit}}"
|
||||||
changelog:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
filters:
|
filters:
|
||||||
exclude:
|
exclude:
|
||||||
- '^docs:'
|
- '^docs:'
|
||||||
- '^test:'
|
- '^test:'
|
||||||
|
nfpms:
|
||||||
|
- id: main
|
||||||
|
file_name_template: '{{ .ProjectName }}-git-{{ .ShortCommit }}_{{ .Arch }}'
|
||||||
|
package_name: waybar-mpris
|
||||||
|
homepage: https://git.hrfee.pw/hrfee/waybar-mpris
|
||||||
|
description: MPRIS2 waybar component
|
||||||
|
maintainer: Harvey Tindall <hrfee@hrfee.dev>
|
||||||
|
license: MIT
|
||||||
|
vendor: hrfee.dev
|
||||||
|
version_metadata: git
|
||||||
|
builds:
|
||||||
|
- main
|
||||||
|
content:
|
||||||
|
- src: ./LICENSE
|
||||||
|
dst: /usr/share/licenses/waybar-mpris
|
||||||
|
formats:
|
||||||
|
- deb
|
||||||
|
- rpm
|
||||||
|
Loading…
Reference in New Issue
Block a user