Compare commits
3 Commits
c9da7ff163
...
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
|
||||
commands:
|
||||
- go build
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
when:
|
||||
- event: tag
|
||||
|
||||
@@ -23,7 +25,7 @@ steps:
|
||||
cache: true
|
||||
username: elara6331
|
||||
password:
|
||||
from_secret: registry_password
|
||||
from_secret: gitea_token
|
||||
when:
|
||||
event: tag
|
||||
|
||||
@@ -40,7 +42,7 @@ steps:
|
||||
event: tag
|
||||
|
||||
- name: release
|
||||
image: woodpeckerci/plugin-release:0.2.3
|
||||
image: gitea.elara.ws/elara6331/woodpecker-release
|
||||
settings:
|
||||
title: "Version ${CI_COMMIT_TAG##v}"
|
||||
files:
|
||||
|
||||
@@ -3,9 +3,15 @@ labels:
|
||||
|
||||
steps:
|
||||
- name: manifest
|
||||
image: mplatform/manifest-tool
|
||||
image: gcr.io/go-containerregistry/crane:debug
|
||||
entrypoint: ["/busybox/sh", "-c", "echo $CI_SCRIPT | base64 -d | /busybox/sh -e"]
|
||||
commands:
|
||||
- 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
|
||||
- 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:
|
||||
- event: tag
|
||||
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
<p align="center">
|
||||
<img width="250" src="assets/logo/distrohop-text-bottom.svg">
|
||||
</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