Compare commits
6 Commits
v0.0.3
...
978698a088
| Author | SHA1 | Date | |
|---|---|---|---|
| 978698a088 | |||
| 852d88a6ec | |||
| 53e19e4eee | |||
| be3d45ab3e | |||
| 3bea564006 | |||
| 0533731f69 |
70
.goreleaser.yaml
Normal file
70
.goreleaser.yaml
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
version: 2
|
||||||
|
before:
|
||||||
|
hooks:
|
||||||
|
- go mod tidy
|
||||||
|
builds:
|
||||||
|
- id: distrohop
|
||||||
|
env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
binary: distrohop
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
- '386'
|
||||||
|
- arm64
|
||||||
|
- arm
|
||||||
|
- riscv64
|
||||||
|
archives:
|
||||||
|
- files:
|
||||||
|
- distrohop.service
|
||||||
|
nfpms:
|
||||||
|
- id: distrohop
|
||||||
|
description: "A utility for correlating and identifying equivalent software packages across different Linux distributions"
|
||||||
|
homepage: 'https://gitea.elara.ws/Elara6331/distrohop'
|
||||||
|
maintainer: 'Elara Ivy <elara@elara.ws>'
|
||||||
|
license: AGPLv3
|
||||||
|
formats:
|
||||||
|
- deb
|
||||||
|
- rpm
|
||||||
|
- archlinux
|
||||||
|
provides:
|
||||||
|
- distrohop
|
||||||
|
conflicts:
|
||||||
|
- distrohop
|
||||||
|
contents:
|
||||||
|
- src: distrohop.service
|
||||||
|
dst: /etc/systemd/system/distrohop.service
|
||||||
|
aurs:
|
||||||
|
- name: distrohop-bin
|
||||||
|
homepage: 'https://gitea.elara.ws/Elara6331/distrohop'
|
||||||
|
description: "A utility for correlating and identifying equivalent software packages across different Linux distributions"
|
||||||
|
maintainers:
|
||||||
|
- 'Elara Ivy <elara@elara.ws>'
|
||||||
|
license: AGPLv3
|
||||||
|
private_key: '{{ .Env.AUR_KEY }}'
|
||||||
|
git_url: 'ssh://aur@aur.archlinux.org/distrohop-bin.git'
|
||||||
|
provides:
|
||||||
|
- distrohop
|
||||||
|
conflicts:
|
||||||
|
- distrohop
|
||||||
|
package: |-
|
||||||
|
# binaries
|
||||||
|
install -Dm755 ./distrohop "${pkgdir}/usr/bin/distrohop"
|
||||||
|
|
||||||
|
# services
|
||||||
|
install -Dm644 ./distrohop.service "${pkgdir}/etc/systemd/system/distrohop.service"
|
||||||
|
release:
|
||||||
|
gitea:
|
||||||
|
owner: Elara6331
|
||||||
|
name: distrohop
|
||||||
|
gitea_urls:
|
||||||
|
api: 'https://gitea.elara.ws/api/v1/'
|
||||||
|
download: 'https://gitea.elara.ws'
|
||||||
|
skip_tls_verify: false
|
||||||
|
checksum:
|
||||||
|
name_template: 'checksums.txt'
|
||||||
|
snapshot:
|
||||||
|
name_template: "{{ incpatch .Version }}-next"
|
||||||
|
changelog:
|
||||||
|
sort: asc
|
||||||
@@ -2,19 +2,38 @@ matrix:
|
|||||||
platform:
|
platform:
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
|
- linux/riscv64
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
platform: ${platform}
|
platform: ${platform}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build-amd64
|
||||||
image: golang:1.23.6
|
image: golang:1.23.6
|
||||||
commands:
|
commands:
|
||||||
- go build
|
- go build
|
||||||
environment:
|
|
||||||
CGO_ENABLED: 0
|
|
||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
|
- matrix:
|
||||||
|
platform: linux/amd64
|
||||||
|
|
||||||
|
- name: build-arm64
|
||||||
|
image: golang:1.23.6
|
||||||
|
commands:
|
||||||
|
- go build
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
|
- matrix:
|
||||||
|
platform: linux/arm64
|
||||||
|
|
||||||
|
- name: build-riscv
|
||||||
|
image: riscv64/golang:1.23.6
|
||||||
|
commands:
|
||||||
|
- go build
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
|
- matrix:
|
||||||
|
platform: linux/riscv64
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: woodpeckerci/plugin-kaniko
|
image: woodpeckerci/plugin-kaniko
|
||||||
@@ -25,7 +44,7 @@ steps:
|
|||||||
cache: true
|
cache: true
|
||||||
username: elara6331
|
username: elara6331
|
||||||
password:
|
password:
|
||||||
from_secret: gitea_token
|
from_secret: registry_password
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
@@ -42,7 +61,7 @@ steps:
|
|||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
- name: release
|
- name: release
|
||||||
image: gitea.elara.ws/elara6331/woodpecker-release
|
image: woodpeckerci/plugin-release
|
||||||
settings:
|
settings:
|
||||||
title: "Version ${CI_COMMIT_TAG##v}"
|
title: "Version ${CI_COMMIT_TAG##v}"
|
||||||
files:
|
files:
|
||||||
|
|||||||
@@ -3,17 +3,12 @@ labels:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: manifest
|
- name: manifest
|
||||||
image: gcr.io/go-containerregistry/crane:debug
|
image: mplatform/manifest-tool
|
||||||
entrypoint: ["/busybox/sh", "-c", "echo $CI_SCRIPT | base64 -d | /busybox/sh -e"]
|
|
||||||
commands:
|
commands:
|
||||||
- crane auth login -u elara6331 -p $REGISTRY_TOKEN gitea.elara.ws
|
- manifest-tool push from-args --platforms linux/amd64,linux/arm64,linux/riscv64 --template gitea.elara.ws/elara6331/distrohop:ARCH --tags ${CI_COMMIT_TAG} --target gitea.elara.ws/elara6331/distrohop:latest
|
||||||
- crane index append -m gitea.elara.ws/elara6331/distrohop:amd64 -m gitea.elara.ws/elara6331/distrohop:arm64 -t gitea.elara.ws/elara6331/distrohop:latest
|
|
||||||
- crane index append -m gitea.elara.ws/elara6331/distrohop:amd64 -m gitea.elara.ws/elara6331/distrohop:arm64 -t gitea.elara.ws/elara6331/distrohop:${CI_COMMIT_TAG}
|
|
||||||
environment:
|
|
||||||
REGISTRY_TOKEN:
|
|
||||||
from_secret: gitea_token
|
|
||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
|
- platform: linux/amd64
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
@@ -1,10 +1,6 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<img width="250" src="assets/logo/distrohop-text-bottom.svg">
|
<img width="250" src="assets/logo/distrohop-text-bottom.svg">
|
||||||
</p>
|
</p>
|
||||||
<p align="center">
|
|
||||||
<img alt="GitHub go.mod Go version" src="https://img.shields.io/github/go-mod/go-version/Elara6331/distrohop?style=for-the-badge"> 
|
|
||||||
<a href="https://goreportcard.com/report/go.elara.ws/distrohop"><img src="https://goreportcard.com/badge/go.elara.ws/distrohop?style=for-the-badge"></a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user