Compare commits
13 Commits
v0.0.2
...
ad1772ff2e
| Author | SHA1 | Date | |
|---|---|---|---|
| ad1772ff2e | |||
| 0b7e062823 | |||
| 8f46ab5546 | |||
| 09c9c33d8b | |||
| c9da7ff163 | |||
| 5a4beea65e | |||
| 32cd1abc09 | |||
| 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
|
||||||
@@ -3,15 +3,8 @@ 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"]
|
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']
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user