12 Commits

Author SHA1 Message Date
8f46ab5546 Create custom CI pipeline
Some checks failed
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/manifest Pipeline was successful
ci/woodpecker/tag/build/1 Pipeline failed
ci/woodpecker/tag/manifest unknown status
ci/woodpecker/tag/build/2 Pipeline failed
2025-02-13 10:40:54 -08:00
09c9c33d8b Create custom CI pipeline
Some checks failed
ci/woodpecker/release/build/1 Pipeline was successful
ci/woodpecker/release/build/2 Pipeline was successful
ci/woodpecker/release/manifest Pipeline was successful
ci/woodpecker/tag/build/1 Pipeline failed
ci/woodpecker/tag/manifest unknown status
ci/woodpecker/tag/build/2 Pipeline failed
2025-02-13 10:38:47 -08:00
c9da7ff163 Create custom CI pipeline
Some checks failed
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/manifest Pipeline was successful
ci/woodpecker/tag/build/1 Pipeline was successful
ci/woodpecker/release/build/1 Pipeline was successful
ci/woodpecker/release/build/2 Pipeline was successful
ci/woodpecker/release/manifest Pipeline was successful
ci/woodpecker/tag/manifest unknown status
ci/woodpecker/tag/build/2 Pipeline failed
2025-02-13 08:18:41 -08:00
5a4beea65e Create custom CI pipeline
Some checks failed
ci/woodpecker/tag/build/1 Pipeline was successful
ci/woodpecker/release/build/1 Pipeline was successful
ci/woodpecker/release/build/2 Pipeline was successful
ci/woodpecker/release/build/3 Pipeline was successful
ci/woodpecker/release/manifest Pipeline was successful
ci/woodpecker/tag/build/3 Pipeline failed
ci/woodpecker/tag/manifest unknown status
ci/woodpecker/tag/build/2 Pipeline failed
2025-02-12 23:55:30 -08:00
32cd1abc09 Create custom CI pipeline
Some checks failed
ci/woodpecker/tag/build/3 Pipeline failed
ci/woodpecker/tag/manifest unknown status
ci/woodpecker/tag/build/1 Pipeline failed
ci/woodpecker/tag/build/2 Pipeline failed
2025-02-12 23:53:06 -08:00
978698a088 Create custom CI pipeline
Some checks failed
ci/woodpecker/push/build/3 Pipeline failed
ci/woodpecker/push/manifest unknown status
ci/woodpecker/push/build/1 Pipeline failed
ci/woodpecker/tag/build/3 Pipeline failed
ci/woodpecker/push/build/2 Pipeline failed
ci/woodpecker/tag/manifest unknown status
ci/woodpecker/tag/build/1 Pipeline failed
ci/woodpecker/tag/build/2 Pipeline failed
2025-02-12 23:51:55 -08:00
852d88a6ec Create custom CI pipeline
Some checks failed
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/build/3 Pipeline was successful
ci/woodpecker/push/manifest Pipeline was successful
ci/woodpecker/tag/build/1 Pipeline failed
ci/woodpecker/tag/build/2 Pipeline failed
ci/woodpecker/tag/build/3 Pipeline failed
ci/woodpecker/tag/manifest unknown status
2025-02-12 23:43:55 -08:00
53e19e4eee Create custom CI pipeline
Some checks failed
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/build/3 Pipeline was successful
ci/woodpecker/push/manifest Pipeline was successful
ci/woodpecker/tag/build/3 Pipeline failed
ci/woodpecker/tag/manifest unknown status
ci/woodpecker/tag/build/1 Pipeline failed
ci/woodpecker/tag/build/2 Pipeline failed
2025-02-12 23:40:45 -08:00
be3d45ab3e Create custom CI pipeline
Some checks failed
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/build/3 Pipeline was successful
ci/woodpecker/push/manifest Pipeline was successful
ci/woodpecker/tag/build/1 Pipeline failed
ci/woodpecker/tag/build/2 Pipeline failed
ci/woodpecker/tag/build/3 Pipeline failed
ci/woodpecker/tag/manifest unknown status
2025-02-12 23:39:12 -08:00
3bea564006 Create custom CI pipeline 2025-02-12 23:37:03 -08:00
0533731f69 Create custom CI pipeline
Some checks failed
ci/woodpecker/push/woodpecker/1 Pipeline failed
ci/woodpecker/push/woodpecker/3 Pipeline failed
ci/woodpecker/push/woodpecker/2 Pipeline failed
ci/woodpecker/tag/woodpecker/3 Pipeline failed
ci/woodpecker/tag/woodpecker/1 Pipeline was successful
ci/woodpecker/release/woodpecker/3 Pipeline failed
ci/woodpecker/release/woodpecker/1 Pipeline was successful
ci/woodpecker/release/woodpecker/2 Pipeline was successful
ci/woodpecker/tag/woodpecker/2 Pipeline failed
2025-02-12 23:20:59 -08:00
d58228cd43 Fix lack of $HOME in systemd service
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-02-12 22:55:04 -08:00
6 changed files with 90 additions and 30 deletions

20
.nfpm.yaml Normal file
View File

@@ -0,0 +1,20 @@
name: 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
arch: ${ARCH}
version: ${VERSION}
provides:
- distrohop
conflicts:
- distrohop
contents:
- src: distrohop
dst: /usr/bin/distrohop
file_info:
mode: 0755
- src: distrohop.service
dst: /etc/systemd/system/distrohop.service
file_info:
mode: 0644

View File

@@ -1,30 +0,0 @@
labels:
platform: linux/amd64
steps:
- name: docker
image: gitea.elara.ws/elara6331/builder
commands:
- registry-login
- ko build -B --platform=linux/amd64,linux/arm64,linux/riscv64 -t latest,${CI_COMMIT_TAG} --sbom=none
environment:
REGISTRY: gitea.elara.ws
REGISTRY_USERNAME: Elara6331
KO_DOCKER_REPO: gitea.elara.ws/elara6331
KO_DEFAULTBASEIMAGE: gitea.elara.ws/elara6331/static-root
REGISTRY_PASSWORD:
from_secret: registry_password
when:
event: tag
- name: release
image: goreleaser/goreleaser
commands:
- goreleaser release
environment:
GITEA_TOKEN:
from_secret: gitea_token
AUR_KEY:
from_secret: aur_key
when:
event: tag

53
.woodpecker/build.yml Normal file
View File

@@ -0,0 +1,53 @@
matrix:
platform:
- linux/amd64
- linux/arm64
labels:
platform: ${platform}
steps:
- name: build
image: golang:1.23.6
commands:
- go build
when:
- event: tag
- name: docker
image: woodpeckerci/plugin-kaniko
settings:
registry: gitea.elara.ws
repo: elara6331/distrohop
tags: ${platform##linux/}
cache: true
username: elara6331
password:
from_secret: gitea_token
when:
event: tag
- name: nfpm
image: goreleaser/nfpm
environment:
ARCH: ${platform##linux/}
VERSION: ${CI_COMMIT_TAG##v}
commands:
- nfpm pkg -f .nfpm.yaml -p deb -t .
- nfpm pkg -f .nfpm.yaml -p rpm -t .
- nfpm pkg -f .nfpm.yaml -p archlinux -t .
when:
event: tag
- name: release
image: gitea.elara.ws/elara6331/woodpecker-release:0.2.3
settings:
title: "Version ${CI_COMMIT_TAG##v}"
files:
- '*.deb'
- '*.rpm'
- '*.tar.zst'
api_key:
from_secret: gitea_token
when:
event: tag

13
.woodpecker/manifest.yml Normal file
View File

@@ -0,0 +1,13 @@
labels:
platform: linux/amd64
steps:
- name: manifest
image: mplatform/manifest-tool
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
when:
- event: tag
depends_on:
- build

3
Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM gitea.elara.ws/elara6331/static-root:latest
COPY distrohop /bin/distrohop
ENTRYPOINT [ "/bin/distrohop" ]

View File

@@ -6,6 +6,7 @@ After=network.target
ExecStart=distrohop ExecStart=distrohop
Restart=always Restart=always
StandardOutput=journal StandardOutput=journal
Environment=HOME=/root
[Install] [Install]
WantedBy=default.target WantedBy=default.target