Compare commits
3 Commits
ad1772ff2e
...
v0.0.3
| Author | SHA1 | Date | |
|---|---|---|---|
| 27917528f7 | |||
| 8251e8b461 | |||
| c194f4956d |
@@ -1,70 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -11,6 +11,8 @@ steps:
|
|||||||
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
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,15 @@ labels:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: manifest
|
- name: manifest
|
||||||
image: mplatform/manifest-tool
|
image: gcr.io/go-containerregistry/crane:debug
|
||||||
entrypoint: ['manifest-tool', 'push', 'from-args', '--platforms', 'linux/amd64,linux/arm64', '--template', 'gitea.elara.ws/elara6331/distrohop:ARCH', '--tags', "${CI_COMMIT_TAG}", '--target', 'gitea.elara.ws/elara6331/distrohop:latest']
|
entrypoint: ["/busybox/sh", "-c", "echo $CI_SCRIPT | base64 -d | /busybox/sh -e"]
|
||||||
|
commands:
|
||||||
|
- crane auth login -u elara6331 -p $REGISTRY_TOKEN gitea.elara.ws
|
||||||
|
- 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
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
<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