38 Commits

Author SHA1 Message Date
unkinben 06b1797537 Merge branch 'master' into benvin/tea
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build-almalinux8 Pipeline was successful
ci/woodpecker/pr/build-almalinux9 Pipeline was successful
2026-04-26 21:21:16 +10:00
unkinben 0fd817b13f Merge pull request 'benvin/escape_secret' (#113) from benvin/escape_secret into master
ci/woodpecker/push/deploy-almalinux9 Pipeline was successful
ci/woodpecker/push/deploy-almalinux8 Pipeline was successful
Reviewed-on: #113
2026-04-26 21:11:29 +10:00
unkinben c7eddffbb3 fix: uploads fail with wrong password
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build-almalinux8 Pipeline was successful
ci/woodpecker/pr/build-almalinux9 Pipeline was successful
- properly escape the ${} function
2026-04-26 21:07:49 +10:00
unkinben 17e0fadd44 feat: add tea rpm 2026-04-26 21:07:49 +10:00
unkinben cfd1972d54 Merge pull request 'feat: add stern rpm' (#102) from benvin/stern into master
ci/woodpecker/push/deploy-almalinux8 Pipeline was successful
ci/woodpecker/push/deploy-almalinux9 Pipeline was successful
Reviewed-on: #102
2026-04-26 19:50:59 +10:00
unkinben 8cbd495004 feat: add tea rpm
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build-almalinux9 Pipeline was successful
ci/woodpecker/pr/build-almalinux8 Pipeline was successful
2026-04-26 16:58:37 +10:00
unkinben e04f19ed03 feat: add stern rpm
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build-almalinux8 Pipeline was successful
ci/woodpecker/pr/build-almalinux9 Pipeline was successful
2026-04-26 16:23:01 +10:00
unkinben ff054f42bb Merge pull request 'fix: add --network=host to docker and fix build tool fallback order' (#89) from fix/docker-network-host-and-tool-detection into master
ci/woodpecker/push/deploy-almalinux8 Pipeline was successful
ci/woodpecker/push/deploy-almalinux9 Pipeline was successful
Reviewed-on: #89
2026-04-25 16:14:57 +10:00
unkinben 818a48fa78 fix: add --network=host to docker and fix build tool fallback order
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build-almalinux8 Pipeline was successful
ci/woodpecker/pr/build-almalinux9 Pipeline was successful
Pass --network=host to docker build and docker create so package builds
can reach the network. Reorder auto-detection so Docker is tried before
buildah/native, only falling back when the explicit flag is not set.
2026-04-25 16:11:40 +10:00
unkinben 111ea50d80 Merge pull request 'feat: automatically update claude-ai version' (#88) from benvin/claude-ai-versioncheck into master
ci/woodpecker/push/deploy-almalinux8 Pipeline was successful
ci/woodpecker/push/deploy-almalinux9 Pipeline was successful
Reviewed-on: #88
2026-04-25 15:39:39 +10:00
unkinben 1b46845734 feat: automatically update claude-ai version
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build-almalinux8 Pipeline was successful
ci/woodpecker/pr/build-almalinux9 Pipeline was successful
2026-04-25 11:38:32 +10:00
unkinben 497b99c328 Merge pull request 'feat: add claude-code rpm' (#87) from benvin/claude-code into master
ci/woodpecker/push/deploy-almalinux8 Pipeline was successful
ci/woodpecker/push/deploy-almalinux9 Pipeline was successful
Reviewed-on: #87
2026-04-25 11:37:22 +10:00
unkinben 6b070d8c14 feat: add claude-code rpm
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build-almalinux9 Pipeline was successful
ci/woodpecker/pr/build-almalinux8 Pipeline was successful
2026-04-25 11:32:10 +10:00
unkinben dff743a00b Merge pull request 'feat: migrate to woodpeckerci' (#83) from benvin/woodpecker_changes into master
ci/woodpecker/push/deploy-almalinux9 Pipeline was successful
ci/woodpecker/push/deploy-almalinux8 Pipeline was successful
Reviewed-on: #83
2026-03-07 17:14:18 +11:00
unkinben f408d3d705 feat: migrate to woodpeckerci
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build-almalinux9 Pipeline was successful
ci/woodpecker/pr/build-almalinux8 Pipeline was successful
- update build tool for kubernetes auth
- update build tool to build packages without docker (native + buildah)
- add woodpecker pre-commit and build jobs
- add woodpecker deployment jobs
- cleanup gitea actions workflows
2026-03-07 17:11:20 +11:00
unkinben c4c018b1ee Merge pull request 'feat: additional pre-commit checks' (#86) from benvin/pre-commit-improvements into master
Deploy / deploy-8 (push) Successful in 4s
Deploy / deploy-9 (push) Successful in 3s
Reviewed-on: #86
2026-03-07 17:06:30 +11:00
unkinben b18e34c905 feat: additional pre-commit checks
Build / build-8 (pull_request) Successful in 10s
Build / build-9 (pull_request) Successful in 10s
- add all precommit checks from pre-commit's hooks repo
- ensure scripts with shebangs are executable
2026-03-07 17:04:48 +11:00
unkinben cede57a565 Merge pull request 'fix: precommit fix all' (#85) from benvin/pre-commit-all into master
Deploy / deploy-8 (push) Successful in 3s
Deploy / deploy-9 (push) Successful in 3s
Reviewed-on: #85
2026-03-07 12:30:01 +11:00
unkinben 07a75008a1 fix: precommit fix all
Build / build-8 (pull_request) Successful in 12s
Build / build-9 (pull_request) Successful in 13s
- run pre-commit against all files
- preparation for running pre-commit in ci
2026-03-07 12:28:20 +11:00
unkinben 5e1533289f Merge pull request 'chore: bump rarlab version' (#84) from benvin/rarlab_fix into master
Deploy / deploy-8 (push) Successful in 3s
Deploy / deploy-9 (push) Successful in 3s
Reviewed-on: #84
2026-03-07 12:27:25 +11:00
unkinben cd1eb1f46c chore: bump rarlab version
Build / build-8 (pull_request) Successful in 16s
Build / build-9 (pull_request) Successful in 17s
- release 7.20
- use artifactapi caching
2026-03-07 12:15:19 +11:00
unkinben b585cca9f0 Merge pull request 'feat: update pre-commit with more tests' (#82) from benvin/pre-commit-update into master
Deploy / deploy-8 (push) Successful in 2s
Deploy / deploy-9 (push) Successful in 3s
Reviewed-on: #82
2026-03-01 23:48:29 +11:00
unkinben a117caae27 Merge pull request 'feat: add kustomize' (#81) from benvin/kustomize into master
Deploy / deploy-9 (push) Successful in 4s
Deploy / deploy-8 (push) Successful in 4s
Reviewed-on: #81
2026-03-01 23:47:01 +11:00
unkinben a0b8d8b806 feat: update pre-commit with more tests
Build / build-9 (pull_request) Successful in 14s
Build / build-8 (pull_request) Successful in 17s
- autofix the end-of-file
- report trailing whitespace
2026-03-01 23:43:31 +11:00
unkinben c8bb19d6d6 feat: add kustomize
Build / build-8 (pull_request) Successful in 15s
Build / build-9 (pull_request) Successful in 15s
- add kustomize to rpmbuilder
2026-03-01 23:41:57 +11:00
unkinben 4976f0e43b Merge pull request 'fix: standardize artifact directory structure for multi-distro support' (#80) from benvin/artifact_upload into master
Deploy / deploy-8 (push) Successful in 55s
Deploy / deploy-9 (push) Successful in 1m5s
Reviewed-on: #80
2026-03-01 22:24:06 +11:00
unkinben 745ce03757 fix: standardize artifact directory structure for multi-distro support
Build / build-8 (pull_request) Successful in 4m30s
Build / build-9 (pull_request) Successful in 7m56s
Remove per-package subdirectories from build output to align with workflow expectations.
Update deploy workflow paths to match repository-based structure (dist/repository/*.rpm).
This enables consistent artifact handling across different Linux distributions.
2026-03-01 22:11:23 +11:00
unkinben 3742eabfde Merge pull request 'feat: add kubeconfirm' (#79) from benvin/kubeconfirm into master
Deploy / deploy-8 (push) Failing after 4s
Deploy / deploy-9 (push) Failing after 4s
Reviewed-on: #79
2026-03-01 21:59:03 +11:00
unkinben 5c9fce3607 feat: add kubeconfirm
Build / build-8 (pull_request) Successful in 3m18s
Build / build-9 (pull_request) Successful in 4m38s
- add new rpm kubeconfirm
2026-03-01 21:50:08 +11:00
unkinben 76f79a7371 Merge pull request 'feat: add helm release' (#78) from benvin/helm into master
Deploy / deploy-9 (push) Failing after 3s
Deploy / deploy-8 (push) Failing after 4s
Reviewed-on: #78
2026-01-21 21:55:31 +11:00
unkinben 8e8285546b feat: add helm release
Build / build-8 (pull_request) Successful in 1m55s
Build / build-9 (pull_request) Successful in 4m35s
- helm release in fedora repos is behind the latest
- some helm releases require a newer version
2026-01-20 21:20:45 +11:00
unkinben b15fc0612f Merge pull request 'benvin/replace_release_el8' (#77) from benvin/replace_release_el8 into master
Deploy / deploy-8 (push) Failing after 3s
Deploy / deploy-9 (push) Failing after 3s
Reviewed-on: #77
2026-01-17 20:39:06 +11:00
unkinben 1f1b1cfe32 chore: update urls to artifactapi
Build / build-8 (pull_request) Successful in 2m16s
Build / build-9 (pull_request) Successful in 4m23s
- change github urls to artifactapi
- change gitea urls to artifactapi
- change scripts in nfpm to use full path
- update unrar to 7.12
2026-01-17 20:21:04 +11:00
unkinben e09d0c4bc6 chore: update build tool, puppet-initial
- update build tool with github_release_pattern
- update puppet-initial to reduce impact on upgrades
2026-01-17 15:18:26 +11:00
unkinben 6d379d99b6 chore: update build job, fixed versions
- changed all releases from 1-el8 and 1-el9 to 1
- updated build job to write files to per-repository directories
2026-01-03 23:24:58 +11:00
unkinben 9e02175ead Merge pull request 'chore: nzbget re-release' (#76) from benvin/nzbget_v2 into master
Deploy / deploy-9 (push) Successful in 3s
Deploy / deploy-8 (push) Successful in 4s
Reviewed-on: #76
2026-01-03 22:13:32 +11:00
unkinben a4a28c67d4 chore: nzbget re-release
Build / build-8 (pull_request) Successful in 12s
Build / build-9 (pull_request) Successful in 11s
- failed to upload new release, trying again
2026-01-03 22:12:24 +11:00
unkinben be4df03f81 Merge pull request 'feat: enhance GitHub release tracking with pattern support and version extraction' (#75) from benvin/release_updates into master
Deploy / deploy-8 (push) Successful in 1m7s
Deploy / deploy-9 (push) Successful in 1m16s
Reviewed-on: #75
2026-01-03 21:52:39 +11:00
141 changed files with 1268 additions and 367 deletions
-59
View File
@@ -1,59 +0,0 @@
name: Build
on:
pull_request:
workflow_call:
workflow_dispatch:
jobs:
build-8:
runs-on: almalinux-8
container:
image: git.unkin.net/unkin/almalinux8-actionsdind:latest
options: "--privileged --volume /etc/pki/tls/vault:/etc/pki/tls/vault:ro"
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Packages
env:
VAULT_ROLE_ID: ${{ secrets.RPMBUILDER_VAULT_ROLEID }}
run: |
./tools/build build-all --distro almalinux/el8
- name: Show RPMs
run: |
find /workspace -type f -name "*.rpm"
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: rpms-8
path: /workspace/unkin/rpmbuilder/dist/*/*.rpm
build-9:
runs-on: almalinux-8
container:
image: git.unkin.net/unkin/almalinux9-actionsdind:latest
options: "--privileged --volume /etc/pki/tls/vault:/etc/pki/tls/vault:ro"
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Packages
env:
VAULT_ROLE_ID: ${{ secrets.RPMBUILDER_VAULT_ROLEID }}
run: |
./tools/build build-all --distro almalinux/el9
- name: Show RPMs
run: |
find /workspace -type f -name "*.rpm"
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: rpms-9
path: /workspace/unkin/rpmbuilder/dist/*/*.rpm
-66
View File
@@ -1,66 +0,0 @@
name: Deploy
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy-8:
runs-on: almalinux-8
container:
image: git.unkin.net/unkin/almalinux8-actionsdind:latest
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Download Artifacts
run: |
mkdir -p /workspace/unkin/rpmbuilder/dist/8
export PREVIOUS_RUN_ID=$((GITHUB_RUN_NUMBER - 1))
curl -L -o /workspace/rpms.zip "https://git.unkin.net/${GITHUB_REPOSITORY}/actions/runs/${PREVIOUS_RUN_ID}/artifacts/rpms-8"
unzip /workspace/rpms.zip -d /workspace/unkin/rpmbuilder/dist/8
- name: Show RPMs
run: |
find /workspace -type f -name "*.rpm"
- name: Upload RPMs to Gitea
env:
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}
run: |
for rpm in $(find /workspace/unkin/rpmbuilder/dist/8 -type f -name "*.rpm"); do
curl --user droneci:${{ secrets.DRONECI_PASSWORD }} --upload-file $rpm https://git.unkin.net/api/packages/unkin/rpm/almalinux/el8/upload
done
deploy-9:
runs-on: almalinux-8
container:
image: git.unkin.net/unkin/almalinux9-actionsdind:latest
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Download Artifacts
run: |
mkdir -p /workspace/unkin/rpmbuilder/dist/9
export PREVIOUS_RUN_ID=$((GITHUB_RUN_NUMBER - 1))
curl -L -o /workspace/rpms.zip "https://git.unkin.net/${GITHUB_REPOSITORY}/actions/runs/${PREVIOUS_RUN_ID}/artifacts/rpms-9"
unzip /workspace/rpms.zip -d /workspace/unkin/rpmbuilder/dist/9
- name: Show RPMs
run: |
find /workspace -type f -name "*.rpm"
- name: Upload RPMs to Gitea
env:
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}
run: |
for rpm in $(find /workspace/unkin/rpmbuilder/dist/9 -type f -name "*.rpm"); do
curl --user droneci:${{ secrets.DRONECI_PASSWORD }} --upload-file $rpm https://git.unkin.net/api/packages/unkin/rpm/almalinux/el9/upload
done
+22
View File
@@ -1,5 +1,26 @@
--- ---
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-executables-have-shebangs
- id: check-json
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-yaml
args: [--allow-multiple-documents]
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: pretty-format-json
- id: trailing-whitespace
- repo: https://github.com/adrienverge/yamllint.git - repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1 rev: v1.37.1
hooks: hooks:
@@ -9,6 +30,7 @@ repos:
"-d {extends: relaxed, rules: {line-length: disable}}", "-d {extends: relaxed, rules: {line-length: disable}}",
"-s", "-s",
] ]
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.7 rev: v0.14.7
hooks: hooks:
+20
View File
@@ -0,0 +1,20 @@
when:
- event: pull_request
steps:
- name: build rpms
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
commands:
- mkdir -p /woodpecker/rpms
- ln -s /woodpecker/rpms /workspace
- dnf install buildah -y
- ./tools/build build-all --distro almalinux/el8 --buildah
privileged: true
backend_options:
kubernetes:
serviceAccountName: default
- name: show rpms
image: git.unkin.net/unkin/almalinux8-base:latest
commands:
- find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm"
+20
View File
@@ -0,0 +1,20 @@
when:
- event: pull_request
steps:
- name: build rpms
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
commands:
- mkdir -p /woodpecker/rpms
- ln -s /woodpecker/rpms /workspace
- dnf install buildah -y
- ./tools/build build-all --distro almalinux/el9 --buildah
privileged: true
backend_options:
kubernetes:
serviceAccountName: default
- name: show rpms
image: git.unkin.net/unkin/almalinux9-base:latest
commands:
- find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm"
+37
View File
@@ -0,0 +1,37 @@
when:
- event: push
branch: master
steps:
- name: build-rpms
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
commands:
- mkdir -p /woodpecker/rpms
- ln -s /woodpecker/rpms /workspace
- dnf install buildah -y
- ./tools/build build-all --distro almalinux/el8 --buildah
privileged: true
backend_options:
kubernetes:
serviceAccountName: default
- name: show-rpms
image: git.unkin.net/unkin/almalinux9-base:latest
commands:
- find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm"
depends_on: [build-rpms]
- name: deploy-rpms
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
commands:
- |
for rpm in $(find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm"); do
curl --user droneci:$${DRONECI_PASSWORD} --upload-file $rpm https://git.unkin.net/api/packages/unkin/rpm/almalinux/el8/upload
done
environment:
DRONECI_PASSWORD:
from_secret: DRONECI_PASSWORD
backend_options:
kubernetes:
serviceAccountName: default
depends_on: [build-rpms, show-rpms]
+37
View File
@@ -0,0 +1,37 @@
when:
- event: push
branch: master
steps:
- name: build-rpms
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
commands:
- mkdir -p /woodpecker/rpms
- ln -s /woodpecker/rpms /workspace
- dnf install buildah -y
- ./tools/build build-all --distro almalinux/el9 --buildah
privileged: true
backend_options:
kubernetes:
serviceAccountName: default
- name: show-rpms
image: git.unkin.net/unkin/almalinux9-base:latest
commands:
- find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm"
depends_on: [build-rpms]
- name: deploy-rpms
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
commands:
- |
for rpm in $(find /woodpecker/src/git.unkin.net/unkin/rpmbuilder/ -type f -name "*.rpm"); do
curl --user droneci:$${DRONECI_PASSWORD} --upload-file $rpm https://git.unkin.net/api/packages/unkin/rpm/almalinux/el9/upload
done
environment:
DRONECI_PASSWORD:
from_secret: DRONECI_PASSWORD
backend_options:
kubernetes:
serviceAccountName: default
depends_on: [build-rpms, show-rpms]
+9
View File
@@ -0,0 +1,9 @@
when:
- event: pull_request
steps:
- name: pre-commit
image: git.unkin.net/unkin/almalinux9-base:latest
commands:
- dnf install uv make -y
- uvx pre-commit run --all-files
+1 -1
View File
@@ -31,4 +31,4 @@ ENV PACKAGE_PLATFORM=${PACKAGE_PLATFORM}
COPY resources /app/resources COPY resources /app/resources
# Default command to build RPMs # Default command to build RPMs
CMD /app/resources/build.sh CMD /app/resources/build.sh
+14
View File
@@ -3,6 +3,10 @@ ROOT_DIR := $(PWD)
BUILD_TOOL := $(ROOT_DIR)/tools/build BUILD_TOOL := $(ROOT_DIR)/tools/build
DISTRO ?= almalinux/el9 DISTRO ?= almalinux/el9
# Authentication variables (optional)
# VAULT_ROLE_ID - Use AppRole authentication if set
# VAULT_ROLE - Kubernetes role for service account authentication (default: rpmbuilder)
# Automatically find all packages with metadata.yaml # Automatically find all packages with metadata.yaml
PACKAGES := $(shell find $(ROOT_DIR)/rpms -mindepth 1 -maxdepth 1 -type d -exec test -f {}/metadata.yaml \; -print | xargs -n1 basename | sort) PACKAGES := $(shell find $(ROOT_DIR)/rpms -mindepth 1 -maxdepth 1 -type d -exec test -f {}/metadata.yaml \; -print | xargs -n1 basename | sort)
@@ -22,6 +26,16 @@ build-all:
@echo "Building all packages using Python tooling for distro $(DISTRO)..." @echo "Building all packages using Python tooling for distro $(DISTRO)..."
$(BUILD_TOOL) build-all --distro $(DISTRO) $(BUILD_TOOL) build-all --distro $(DISTRO)
# Build all packages using native build (no Docker)
build-all-native:
@echo "Building all packages natively (no Docker) for distro $(DISTRO)..."
$(BUILD_TOOL) build-all --distro $(DISTRO) --native
# Build all packages using Buildah
build-all-buildah:
@echo "Building all packages using Buildah for distro $(DISTRO)..."
$(BUILD_TOOL) build-all --distro $(DISTRO) --buildah
# Build specific package using Python tool # Build specific package using Python tool
.PHONY: $(PACKAGES) .PHONY: $(PACKAGES)
$(PACKAGES): $(PACKAGES):
+1 -1
View File
@@ -2,7 +2,7 @@
set -e set -e
curl -L --output act_runner-linux-amd64 https://dl.gitea.com/act_runner/${PACKAGE_VERSION}/act_runner-${PACKAGE_VERSION}-linux-amd64 curl -L --output act_runner-linux-amd64 https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/gitea-dl/act_runner/${PACKAGE_VERSION}/act_runner-${PACKAGE_VERSION}-linux-amd64
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
+1 -1
View File
@@ -2,7 +2,7 @@
set -e set -e
# Download the required files # Download the required files
curl --output - -L https://github.com/prometheus-community/bind_exporter/releases/download/v${PACKAGE_VERSION}/bind_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf - curl --output - -L https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/prometheus-community/bind_exporter/releases/download/v${PACKAGE_VERSION}/bind_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf -
# Process nfpm.yaml with envsubst # Process nfpm.yaml with envsubst
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
+2 -2
View File
@@ -11,10 +11,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 0.10.1 version: 0.10.1
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 0.10.1 version: 0.10.1
+2 -2
View File
@@ -2,10 +2,10 @@
set -e set -e
# Download the required files # Download the required files
wget -O /app/boilerplate https://github.com/gruntwork-io/boilerplate/releases/download/v${PACKAGE_VERSION}/boilerplate_linux_amd64 wget -O /app/boilerplate https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/gruntwork-io/boilerplate/releases/download/v${PACKAGE_VERSION}/boilerplate_linux_amd64
# Process nfpm.yaml with envsubst # Process nfpm.yaml with envsubst
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM # Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+18
View File
@@ -0,0 +1,18 @@
---
arch: amd64
builds:
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
repository: [almalinux/el8]
version: 2.1.120
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
repository: [almalinux/el9]
version: 2.1.120
claude_ai: true
description: Claude Code - Anthropic's agentic AI coding tool
homepage: https://claude.ai/code
license: Proprietary
maintainer: Anthropic
name: claude-code
platform: linux
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/bash
set -e
# Download claude-code binary
wget -O /app/claude https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/claude-ai/claude-code-releases/${PACKAGE_VERSION}/linux-x64/claude
chmod +x /app/claude
# Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+33
View File
@@ -0,0 +1,33 @@
# nfpm.yaml
name: ${PACKAGE_NAME}
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: ${PACKAGE_ARCH}
platform: ${PACKAGE_PLATFORM}
section: default
priority: extra
description: "${PACKAGE_DESCRIPTION}"
maintainer: ${PACKAGE_MAINTAINER}
homepage: ${PACKAGE_HOMEPAGE}
license: ${PACKAGE_LICENSE}
disable_globbing: false
replaces:
- claude-code
- claude
provides:
- claude-code
- claude
# Files to include in the package
contents:
- src: /app/claude
dst: /usr/bin/claude
file_info:
mode: 0755
owner: root
group: root
+2 -2
View File
@@ -11,10 +11,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 1.9.0 version: 1.9.0
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 1.9.0 version: 1.9.0
+2 -2
View File
@@ -2,11 +2,11 @@
set -e set -e
# Download and extract cni-plugins # Download and extract cni-plugins
wget -O /app/cni-plugins-linux-amd64.tgz https://github.com/containernetworking/plugins/releases/download/v${PACKAGE_VERSION}/cni-plugins-linux-amd64-v${PACKAGE_VERSION}.tgz wget -O /app/cni-plugins-linux-amd64.tgz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/containernetworking/plugins/releases/download/v${PACKAGE_VERSION}/cni-plugins-linux-amd64-v${PACKAGE_VERSION}.tgz
tar xf cni-plugins-linux-amd64.tgz tar xf cni-plugins-linux-amd64.tgz
# Process nfpm.yaml with envsubst # Process nfpm.yaml with envsubst
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM # Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+1 -1
View File
@@ -12,4 +12,4 @@ unzip consul-cni.zip
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+2 -2
View File
@@ -11,10 +11,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 1.22.2 version: 1.22.2
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 1.22.2 version: 1.22.2
+1 -1
View File
@@ -13,4 +13,4 @@ unzip consul.zip
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM # Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+2 -2
View File
@@ -11,10 +11,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 3.6.7 version: 3.6.7
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 3.6.7 version: 3.6.7
+2 -2
View File
@@ -2,7 +2,7 @@
set -e set -e
# Download and extract etcd # Download and extract etcd
wget -O /app/etcd-v${PACKAGE_VERSION}-linux-amd64.tar.gz https://github.com/etcd-io/etcd/releases/download/v${PACKAGE_VERSION}/etcd-v${PACKAGE_VERSION}-linux-amd64.tar.gz wget -O /app/etcd-v${PACKAGE_VERSION}-linux-amd64.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/etcd-io/etcd/releases/download/v${PACKAGE_VERSION}/etcd-v${PACKAGE_VERSION}-linux-amd64.tar.gz
tar xf /app/etcd-v${PACKAGE_VERSION}-linux-amd64.tar.gz tar xf /app/etcd-v${PACKAGE_VERSION}-linux-amd64.tar.gz
mv /app/etcd-v${PACKAGE_VERSION}-linux-amd64/* /app/ mv /app/etcd-v${PACKAGE_VERSION}-linux-amd64/* /app/
@@ -10,4 +10,4 @@ mv /app/etcd-v${PACKAGE_VERSION}-linux-amd64/* /app/
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM # Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+2 -2
View File
@@ -11,10 +11,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 2.3.0 version: 2.3.0
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 2.3.0 version: 2.3.0
+1 -1
View File
@@ -2,7 +2,7 @@
set -e set -e
# Download the required files # Download the required files
curl --output - -L https://github.com/onedr0p/exportarr/releases/download/v${PACKAGE_VERSION}/exportarr_${PACKAGE_VERSION}_linux_amd64.tar.gz | tar --strip-components=1 -xzf - curl --output - -L https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/onedr0p/exportarr/releases/download/v${PACKAGE_VERSION}/exportarr_${PACKAGE_VERSION}_linux_amd64.tar.gz | tar --strip-components=1 -xzf -
# Process nfpm.yaml with envsubst # Process nfpm.yaml with envsubst
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
+2 -2
View File
@@ -10,10 +10,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 1.9.0 version: 1.9.0
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 1.9.0 version: 1.9.0
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/bash #!/usr/bin/bash
set -e set -e
curl --output - -L https://github.com/tynany/frr_exporter/releases/download/v${PACKAGE_VERSION}/frr_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf - curl --output - -L https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/tynany/frr_exporter/releases/download/v${PACKAGE_VERSION}/frr_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf -
# Process nfpm.yaml with envsubst # Process nfpm.yaml with envsubst
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
+2 -2
View File
@@ -2,7 +2,7 @@
set -e set -e
# Download and extract g10k # Download and extract g10k
wget -O /app/g10k.zip https://github.com/xorpaul/g10k/releases/download/v${PACKAGE_VERSION}/g10k-v${PACKAGE_VERSION}-linux-amd64.zip wget -O /app/g10k.zip https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/xorpaul/g10k/releases/download/v${PACKAGE_VERSION}/g10k-v${PACKAGE_VERSION}-linux-amd64.zip
pushd /app pushd /app
unzip /app/g10k.zip unzip /app/g10k.zip
popd popd
@@ -11,4 +11,4 @@ popd
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM # Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+19
View File
@@ -0,0 +1,19 @@
name: helm
github: helm/helm
description: The Kubernetes Package Manager
arch: amd64
platform: linux
maintainer: Helm Contributors
homepage: https://github.com/helm/helm
license: Apache-2.0 license
builds:
- repository:
- almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1
version: 4.0.5
- repository:
- almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1
version: 4.0.5
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/bash
set -e
# Download the required files
curl -L -o /app/helm.tar.gz https://get.helm.sh/helm-v${PACKAGE_VERSION}-linux-amd64.tar.gz
# Extract the binary
cd /app
tar -xzf helm.tar.gz
# Make the binary executable
chmod +x /app/linux-amd64/helm
# Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+39
View File
@@ -0,0 +1,39 @@
---
# nfpm.yaml
name: ${PACKAGE_NAME}
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: ${PACKAGE_ARCH}
platform: ${PACKAGE_PLATFORM}
section: default
priority: extra
description: "${PACKAGE_DESCRIPTION}"
maintainer: ${PACKAGE_MAINTAINER}
homepage: ${PACKAGE_HOMEPAGE}
license: ${PACKAGE_LICENSE}
disable_globbing: false
replaces:
- helm
provides:
- helm
# Files to include in the package
contents:
- src: /app/linux-amd64/helm
dst: /usr/bin/helm
file_info:
mode: 0755
owner: root
group: root
# Scripts to run during installation/removal (optional)
# scripts:
# preinstall: ./scripts/preinstall.sh
# postinstall: ./scripts/postinstall.sh
# preremove: ./scripts/preremove.sh
# postremove: ./scripts/postremove.sh
+2 -2
View File
@@ -12,10 +12,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 1.2.3 version: 1.2.3
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 1.2.3 version: 1.2.3
+2 -2
View File
@@ -3,7 +3,7 @@
set -e set -e
# Download the required files # Download the required files
curl -L -o /app/helmfile.tar.gz https://github.com/helmfile/helmfile/releases/download/v${PACKAGE_VERSION}/helmfile_${PACKAGE_VERSION}_linux_amd64.tar.gz curl -L -o /app/helmfile.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/helmfile/helmfile/releases/download/v${PACKAGE_VERSION}/helmfile_${PACKAGE_VERSION}_linux_amd64.tar.gz
# Extract the binary # Extract the binary
cd /app cd /app
@@ -15,4 +15,4 @@ chmod +x /app/helmfile
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+5 -5
View File
@@ -1,14 +1,14 @@
name: incus name: incus
github: lxc/incus github: lxc/incus
description: incus package description: Powerful system container and virtual machine manager
arch: amd64 arch: amd64
platform: linux platform: linux
maintainer: '' maintainer: unkin
homepage: '' homepage: https://linuxcontainers.org/incus/
license: '' license: Apache-2.0
builds: builds:
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 6.20.0 version: 6.20.0
+1 -1
View File
@@ -29,7 +29,7 @@ dnf makecache && dnf install -y \
curl-minimal curl-minimal
# Download and extract incus source # Download and extract incus source
curl -L -o /app/incus.tar.gz https://github.com/lxc/incus/archive/refs/tags/v${PACKAGE_VERSION}.tar.gz curl -L -o /app/incus.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/lxc/incus/archive/refs/tags/v${PACKAGE_VERSION}.tar.gz
tar -C /app -xf incus.tar.gz tar -C /app -xf incus.tar.gz
# Install specific Go version # Install specific Go version
Regular → Executable
View File
+4 -4
View File
@@ -1,11 +1,11 @@
name: jellyfin-ffmpeg-bin name: jellyfin-ffmpeg-bin
github: jellyfin/jellyfin-ffmpeg github: jellyfin/jellyfin-ffmpeg
description: jellyfin-ffmpeg-bin package description: FFmpeg binary package optimized for Jellyfin media server
arch: amd64 arch: amd64
platform: linux platform: linux
maintainer: '' maintainer: unkin
homepage: '' homepage: https://github.com/jellyfin/jellyfin-ffmpeg
license: '' license: GPL-3.0
builds: builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
+1 -1
View File
@@ -14,4 +14,4 @@ rpmbuild -ba /root/rpmbuild/SPECS/jellyfin-ffmpeg-bin.spec
# Copy the built RPMs to output directory # Copy the built RPMs to output directory
cp /root/rpmbuild/RPMS/x86_64/jellyfin-ffmpeg-bin-*.rpm /app/dist/ cp /root/rpmbuild/RPMS/x86_64/jellyfin-ffmpeg-bin-*.rpm /app/dist/
cp /root/rpmbuild/SRPMS/jellyfin-ffmpeg-bin-*.rpm /app/dist cp /root/rpmbuild/SRPMS/jellyfin-ffmpeg-bin-*.rpm /app/dist
+1 -1
View File
@@ -18,4 +18,4 @@ rpmbuild -ba /app/resources/jellyfin-server_${PACKAGE_VERSION}.spec
# Copy the built RPMs to output directory # Copy the built RPMs to output directory
cp /root/rpmbuild/RPMS/x86_64/jellyfin-server-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.x86_64.rpm /app/dist/ cp /root/rpmbuild/RPMS/x86_64/jellyfin-server-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.x86_64.rpm /app/dist/
cp /root/rpmbuild/SRPMS/jellyfin-server-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.src.rpm /app/dist/ cp /root/rpmbuild/SRPMS/jellyfin-server-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.src.rpm /app/dist/
+1 -1
View File
@@ -15,4 +15,4 @@ rpmbuild -ba /app/resources/jellyfin-web_${PACKAGE_VERSION}.spec
# Copy the built RPMs to output directory # Copy the built RPMs to output directory
cp /root/rpmbuild/RPMS/noarch/jellyfin-web-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.noarch.rpm /app/dist/ cp /root/rpmbuild/RPMS/noarch/jellyfin-web-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.noarch.rpm /app/dist/
cp /root/rpmbuild/SRPMS/jellyfin-web-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.src.rpm /app/dist/ cp /root/rpmbuild/SRPMS/jellyfin-web-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.src.rpm /app/dist/
@@ -3,7 +3,7 @@
set -e set -e
# Download the required files # Download the required files
curl -L -o /app/jsonnet-language-server https://github.com/grafana/jsonnet-language-server/releases/download/v${PACKAGE_VERSION}/jsonnet-language-server_${PACKAGE_VERSION}_linux_amd64 curl -L -o /app/jsonnet-language-server https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/grafana/jsonnet-language-server/releases/download/v${PACKAGE_VERSION}/jsonnet-language-server_${PACKAGE_VERSION}_linux_amd64
# Make the binary executable # Make the binary executable
chmod +x /app/jsonnet-language-server chmod +x /app/jsonnet-language-server
@@ -11,4 +11,4 @@ chmod +x /app/jsonnet-language-server
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+1 -1
View File
@@ -20,4 +20,4 @@ GOBIN=/app go install github.com/google/go-jsonnet/cmd/jsonnet-lint@v${PACKAGE_V
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build RPM package # Build RPM package
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+1 -1
View File
@@ -21,4 +21,4 @@ GOBIN=/app go install github.com/google/go-jsonnet/cmd/jsonnetfmt@v${PACKAGE_VER
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build RPM package # Build RPM package
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+19
View File
@@ -0,0 +1,19 @@
name: kubeconform
github: yannh/kubeconform
description: A FAST Kubernetes manifests validator, with support for Custom Resources!
arch: amd64
platform: linux
maintainer: Yann Hamon
homepage: https://github.com/yannh/kubeconform
license: Apache-2.0
builds:
- repository:
- almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1
version: 0.7.0
- repository:
- almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1
version: 0.7.0
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/bash
set -e
# Download kubeconform binary
wget -O /app/kubeconform-linux-amd64.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/yannh/kubeconform/releases/download/v${PACKAGE_VERSION}/kubeconform-linux-amd64.tar.gz
# Extract the binary
tar -xzf /app/kubeconform-linux-amd64.tar.gz -C /app/
# Process nfpm.yaml with envsubst
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+39
View File
@@ -0,0 +1,39 @@
---
# nfpm.yaml
name: ${PACKAGE_NAME}
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: ${PACKAGE_ARCH}
platform: ${PACKAGE_PLATFORM}
section: default
priority: extra
description: "${PACKAGE_DESCRIPTION}"
maintainer: ${PACKAGE_MAINTAINER}
homepage: ${PACKAGE_HOMEPAGE}
license: ${PACKAGE_LICENSE}
disable_globbing: false
replaces:
- kubeconform
provides:
- kubeconform
# Files to include in the package
contents:
- src: /app/kubeconform
dst: /usr/bin/kubeconform
file_info:
mode: 0755
owner: root
group: root
# Scripts to run during installation/removal (optional)
# scripts:
# preinstall: ./scripts/preinstall.sh
# postinstall: ./scripts/postinstall.sh
# preremove: ./scripts/preremove.sh
# postremove: ./scripts/postremove.sh
+19
View File
@@ -0,0 +1,19 @@
---
name: kustomize
github: kubernetes-sigs/kustomize
description: Kubernetes native configuration management
arch: amd64
platform: linux
maintainer: kubernetes-sigs
homepage: https://github.com/kubernetes-sigs/kustomize
license: Apache-2.0
github_release_pattern: ^kustomize/v.*
builds:
- repository: [almalinux/el8]
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: '1'
version: 5.8.1
- repository: [almalinux/el9]
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: '1'
version: 5.8.1
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/bash
set -e
# Download kustomize binary
wget -O /app/kustomize_v${PACKAGE_VERSION}_linux_amd64.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${PACKAGE_VERSION}/kustomize_v${PACKAGE_VERSION}_linux_amd64.tar.gz
# Extract the binary
tar -xzf /app/kustomize_v${PACKAGE_VERSION}_linux_amd64.tar.gz -C /app/
# Process nfpm.yaml with envsubst
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+39
View File
@@ -0,0 +1,39 @@
---
# nfpm.yaml
name: ${PACKAGE_NAME}
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: ${PACKAGE_ARCH}
platform: ${PACKAGE_PLATFORM}
section: default
priority: extra
description: "${PACKAGE_DESCRIPTION}"
maintainer: ${PACKAGE_MAINTAINER}
homepage: ${PACKAGE_HOMEPAGE}
license: ${PACKAGE_LICENSE}
disable_globbing: false
replaces:
- kustomize
provides:
- kustomize
# Files to include in the package
contents:
- src: /app/kustomize
dst: /usr/bin/kustomize
file_info:
mode: 0755
owner: root
group: root
# Scripts to run during installation/removal (optional)
# scripts:
# preinstall: ./scripts/preinstall.sh
# postinstall: ./scripts/postinstall.sh
# preremove: ./scripts/preremove.sh
# postremove: ./scripts/postremove.sh
+2 -2
View File
@@ -3,7 +3,7 @@
set -e set -e
# Download the required library # Download the required library
curl -L -o /app/libfdb_c.so https://github.com/apple/foundationdb/releases/download/${PACKAGE_VERSION}/libfdb_c.x86_64.so curl -L -o /app/libfdb_c.so https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/apple/foundationdb/releases/download/${PACKAGE_VERSION}/libfdb_c.x86_64.so
# Make the library readable # Make the library readable
chmod 755 /app/libfdb_c.so chmod 755 /app/libfdb_c.so
@@ -11,4 +11,4 @@ chmod 755 /app/libfdb_c.so
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Update the dynamic linker cache to include the new library # Update the dynamic linker cache to include the new library
ldconfig ldconfig
+2 -2
View File
@@ -11,10 +11,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 2.44.1 version: 2.44.1
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 2.44.1 version: 2.44.1
+1 -1
View File
@@ -11,4 +11,4 @@ GOBIN=/app go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v${PACKAGE_VERSION}
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM # Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+2 -2
View File
@@ -10,10 +10,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 1.10.2 version: 1.10.2
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 1.10.2 version: 1.10.2
+1 -1
View File
@@ -3,7 +3,7 @@
set -e set -e
# Download the required files # Download the required files
curl --output - -L https://github.com/prometheus/node_exporter/releases/download/v${PACKAGE_VERSION}/node_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf - curl --output - -L https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/prometheus/node_exporter/releases/download/v${PACKAGE_VERSION}/node_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf -
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
+2 -2
View File
@@ -12,10 +12,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 0.4.8 version: 0.4.8
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 0.4.8 version: 0.4.8
+1 -1
View File
@@ -12,4 +12,4 @@ unzip nomad-autoscaler.zip
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+1 -1
View File
@@ -12,4 +12,4 @@ unzip nomad.zip
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+2 -2
View File
@@ -11,10 +11,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 2
version: '25.4' version: '25.4'
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 2
version: '25.4' version: '25.4'
+1 -1
View File
@@ -4,4 +4,4 @@ set -e
# Download the pre-built RPM from GitHub releases # Download the pre-built RPM from GitHub releases
curl -L -o /app/dist/nzbget-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.x86_64.rpm \ curl -L -o /app/dist/nzbget-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.x86_64.rpm \
https://github.com/nzbgetcom/nzbget/releases/download/v$PACKAGE_VERSION/nzbget-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.x86_64.rpm https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/nzbgetcom/nzbget/releases/download/v$PACKAGE_VERSION/nzbget-${PACKAGE_VERSION}-${PACKAGE_RELEASE}.x86_64.rpm
@@ -11,10 +11,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 0.1.0 version: 0.1.0
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 0.1.0 version: 0.1.0
@@ -3,7 +3,7 @@
set -e set -e
# Download the required files # Download the required files
curl -L -o /app/openbao-plugin-secrets-consul.tar.gz https://github.com/openbao/openbao-plugins/releases/download/secrets-consul-v${PACKAGE_VERSION}/openbao-plugin-secrets-consul_linux_amd64_v1.tar.gz curl -L -o /app/openbao-plugin-secrets-consul.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/openbao/openbao-plugins/releases/download/secrets-consul-v${PACKAGE_VERSION}/openbao-plugin-secrets-consul_linux_amd64_v1.tar.gz
# Extract the binary # Extract the binary
tar -xzf /app/openbao-plugin-secrets-consul.tar.gz -C /app tar -xzf /app/openbao-plugin-secrets-consul.tar.gz -C /app
@@ -17,4 +17,4 @@ chmod +x /app/openbao-plugin-secrets-consul
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+1 -1
View File
@@ -1,2 +1,2 @@
#!/usr/bin/env bash #!/usr/bin/env bash
mkdir -p /opt/openbao-plugins mkdir -p /opt/openbao-plugins
@@ -11,10 +11,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 0.1.5 version: 0.1.5
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 0.1.5 version: 0.1.5
@@ -3,7 +3,7 @@
set -e set -e
# Download the required files # Download the required files
curl -L -o /app/openbao-plugin-secrets-nomad.tar.gz https://github.com/openbao/openbao-plugins/releases/download/secrets-nomad-v${PACKAGE_VERSION}/openbao-plugin-secrets-nomad_linux_amd64_v1.tar.gz curl -L -o /app/openbao-plugin-secrets-nomad.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/openbao/openbao-plugins/releases/download/secrets-nomad-v${PACKAGE_VERSION}/openbao-plugin-secrets-nomad_linux_amd64_v1.tar.gz
# Extract the binary # Extract the binary
tar -xzf /app/openbao-plugin-secrets-nomad.tar.gz -C /app tar -xzf /app/openbao-plugin-secrets-nomad.tar.gz -C /app
@@ -17,4 +17,4 @@ chmod +x /app/openbao-plugin-secrets-nomad
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+1 -1
View File
@@ -1,2 +1,2 @@
#!/usr/bin/env bash #!/usr/bin/env bash
mkdir -p /opt/openbao-plugins mkdir -p /opt/openbao-plugins
+3 -2
View File
@@ -1,4 +1,5 @@
name: openbao-plugins name: openbao-plugins
github: openbao/openbao-plugins
description: Meta package that installs all OpenBao plugins description: Meta package that installs all OpenBao plugins
arch: amd64 arch: amd64
platform: linux platform: linux
@@ -9,10 +10,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 1.0.0 version: 1.0.0
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 1.0.0 version: 1.0.0
+1 -1
View File
@@ -7,4 +7,4 @@ set -e
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM # Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+2 -2
View File
@@ -10,10 +10,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 1.14.3 version: 1.14.3
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 1.14.3 version: 1.14.3
+1 -1
View File
@@ -13,4 +13,4 @@ unzip packer.zip
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM # Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+1 -1
View File
@@ -2,7 +2,7 @@
set -e set -e
# Download the required files # Download the required files
curl --output - -L https://github.com/prometheus-community/pgbouncer_exporter/releases/download/v${PACKAGE_VERSION}/pgbouncer_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf - curl --output - -L https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/prometheus-community/pgbouncer_exporter/releases/download/v${PACKAGE_VERSION}/pgbouncer_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf -
# Process nfpm.yaml with envsubst # Process nfpm.yaml with envsubst
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
+2 -2
View File
@@ -10,10 +10,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 0.18.1 version: 0.18.1
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 0.18.1 version: 0.18.1
+1 -1
View File
@@ -2,7 +2,7 @@
set -e set -e
# Download the required files # Download the required files
curl --output - -L https://github.com/prometheus-community/postgres_exporter/releases/download/v${PACKAGE_VERSION}/postgres_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf - curl --output - -L https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/prometheus-community/postgres_exporter/releases/download/v${PACKAGE_VERSION}/postgres_exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf -
# Process nfpm.yaml with envsubst # Process nfpm.yaml with envsubst
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
+4 -4
View File
@@ -34,7 +34,7 @@ contents:
# Scripts to run during installation/removal (optional) # Scripts to run during installation/removal (optional)
scripts: scripts:
postinstall: ./scripts/postinstall.sh postinstall: /app/resources/scripts/postinstall.sh
preremove: ./scripts/preremove.sh preremove: /app/resources/scripts/preremove.sh
postremove: ./scripts/postremove.sh postremove: /app/resources/scripts/postremove.sh
preinstall: ./scripts/preinstall.sh preinstall: /app/resources/scripts/preinstall.sh
View File
@@ -1,3 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
systemctl daemon-reload # Only run on fresh install, not upgrade
systemctl enable puppet-initial.service if [ "$1" -eq 1 ]; then
systemctl daemon-reload
systemctl enable puppet-initial.service
fi
@@ -1,3 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
systemctl stop puppet # Only run on fresh install, not upgrade
systemctl disable puppet if [ "$1" -eq 1 ]; then
systemctl stop puppet
systemctl disable puppet
fi
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/bash #!/usr/bin/bash
set -e set -e
curl --output - -L https://github.com/camptocamp/prometheus-puppetdb-exporter/releases/download/${PACKAGE_VERSION}/prometheus-puppetdb-exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf - curl --output - -L https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/camptocamp/prometheus-puppetdb-exporter/releases/download/${PACKAGE_VERSION}/prometheus-puppetdb-exporter-${PACKAGE_VERSION}.linux-amd64.tar.gz | tar --strip-components=1 -xzf -
# Process nfpm.yaml with envsubst # Process nfpm.yaml with envsubst
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
+2 -2
View File
@@ -10,10 +10,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 0.14.10 version: 0.14.10
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 0.14.10 version: 0.14.10
+2 -2
View File
@@ -3,7 +3,7 @@
set -e set -e
# Download and extract ruff # Download and extract ruff
wget -O /app/ruff-x86_64-unknown-linux-gnu.tar.gz https://github.com/astral-sh/ruff/releases/download/${PACKAGE_VERSION}/ruff-x86_64-unknown-linux-gnu.tar.gz wget -O /app/ruff-x86_64-unknown-linux-gnu.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/astral-sh/ruff/releases/download/${PACKAGE_VERSION}/ruff-x86_64-unknown-linux-gnu.tar.gz
tar xf /app/ruff-x86_64-unknown-linux-gnu.tar.gz tar xf /app/ruff-x86_64-unknown-linux-gnu.tar.gz
mv /app/ruff-x86_64-unknown-linux-gnu/* /app/ mv /app/ruff-x86_64-unknown-linux-gnu/* /app/
@@ -11,4 +11,4 @@ mv /app/ruff-x86_64-unknown-linux-gnu/* /app/
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM # Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+2 -2
View File
@@ -10,10 +10,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 0.15.3 version: 0.15.3
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 0.15.3 version: 0.15.3
+2 -2
View File
@@ -3,7 +3,7 @@
set -e set -e
# Download the required files # Download the required files
curl -L -o /app/stalwart-cli.tar.gz https://github.com/stalwartlabs/stalwart/releases/download/v${PACKAGE_VERSION}/stalwart-cli-x86_64-unknown-linux-gnu.tar.gz curl -L -o /app/stalwart-cli.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/stalwartlabs/stalwart/releases/download/v${PACKAGE_VERSION}/stalwart-cli-x86_64-unknown-linux-gnu.tar.gz
# Extract the binary # Extract the binary
tar -xzf /app/stalwart-cli.tar.gz -C /app tar -xzf /app/stalwart-cli.tar.gz -C /app
@@ -14,4 +14,4 @@ chmod +x /app/stalwart-cli
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+2 -2
View File
@@ -11,10 +11,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 0.15.3 version: 0.15.3
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 0.15.3 version: 0.15.3
@@ -3,7 +3,7 @@
set -e set -e
# Download the required files # Download the required files
curl -L -o /app/stalwart-foundationdb.tar.gz https://github.com/stalwartlabs/stalwart/releases/download/v${PACKAGE_VERSION}/stalwart-foundationdb-x86_64-unknown-linux-gnu.tar.gz curl -L -o /app/stalwart-foundationdb.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/stalwartlabs/stalwart/releases/download/v${PACKAGE_VERSION}/stalwart-foundationdb-x86_64-unknown-linux-gnu.tar.gz
# Extract the binary # Extract the binary
tar -xzf /app/stalwart-foundationdb.tar.gz -C /app tar -xzf /app/stalwart-foundationdb.tar.gz -C /app
@@ -14,4 +14,4 @@ chmod +x /app/stalwart-foundationdb
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
View File
+1 -1
View File
@@ -4,4 +4,4 @@
systemctl daemon-reload systemctl daemon-reload
# Note: We don't remove user data, logs, or configuration files # Note: We don't remove user data, logs, or configuration files
# to preserve user data in case of reinstallation # to preserve user data in case of reinstallation
+1 -1
View File
@@ -17,4 +17,4 @@ mkdir -p /var/log/stalwart
# Set ownership # Set ownership
chown -R stalwart:stalwart /opt/stalwart chown -R stalwart:stalwart /opt/stalwart
chown -R stalwart:stalwart /var/lib/stalwart chown -R stalwart:stalwart /var/lib/stalwart
chown -R stalwart:stalwart /var/log/stalwart chown -R stalwart:stalwart /var/log/stalwart
+1 -1
View File
@@ -4,4 +4,4 @@
if systemctl is-enabled stalwart-foundationdb.service >/dev/null 2>&1; then if systemctl is-enabled stalwart-foundationdb.service >/dev/null 2>&1; then
systemctl stop stalwart-foundationdb.service systemctl stop stalwart-foundationdb.service
systemctl disable stalwart-foundationdb.service systemctl disable stalwart-foundationdb.service
fi fi
@@ -23,4 +23,4 @@ ProtectSystem=strict
ReadWritePaths=/var/lib/stalwart /var/log/stalwart /opt/stalwart/data ReadWritePaths=/var/lib/stalwart /var/log/stalwart /opt/stalwart/data
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
+2 -2
View File
@@ -10,10 +10,10 @@ builds:
- repository: - repository:
- almalinux/el8 - almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1-el8 release: 1
version: 0.15.3 version: 0.15.3
- repository: - repository:
- almalinux/el9 - almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1-el9 release: 1
version: 0.15.3 version: 0.15.3
+2 -2
View File
@@ -3,7 +3,7 @@
set -e set -e
# Download the required files # Download the required files
curl -L -o /app/stalwart.tar.gz https://github.com/stalwartlabs/stalwart/releases/download/v${PACKAGE_VERSION}/stalwart-x86_64-unknown-linux-gnu.tar.gz curl -L -o /app/stalwart.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/stalwartlabs/stalwart/releases/download/v${PACKAGE_VERSION}/stalwart-x86_64-unknown-linux-gnu.tar.gz
# Extract the binary # Extract the binary
tar -xzf /app/stalwart.tar.gz -C /app tar -xzf /app/stalwart.tar.gz -C /app
@@ -14,4 +14,4 @@ chmod +x /app/stalwart
# Process the nfpm.yaml template with environment variables # Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
View File
+1 -1
View File
@@ -4,4 +4,4 @@
systemctl daemon-reload systemctl daemon-reload
# Note: We don't remove user data, logs, or configuration files # Note: We don't remove user data, logs, or configuration files
# to preserve user data in case of reinstallation # to preserve user data in case of reinstallation
+1 -1
View File
@@ -17,4 +17,4 @@ mkdir -p /var/log/stalwart
# Set ownership # Set ownership
chown -R stalwart:stalwart /opt/stalwart chown -R stalwart:stalwart /opt/stalwart
chown -R stalwart:stalwart /var/lib/stalwart chown -R stalwart:stalwart /var/lib/stalwart
chown -R stalwart:stalwart /var/log/stalwart chown -R stalwart:stalwart /var/log/stalwart
+1 -1
View File
@@ -4,4 +4,4 @@
if systemctl is-enabled stalwart.service >/dev/null 2>&1; then if systemctl is-enabled stalwart.service >/dev/null 2>&1; then
systemctl stop stalwart.service systemctl stop stalwart.service
systemctl disable stalwart.service systemctl disable stalwart.service
fi fi
+1 -1
View File
@@ -22,4 +22,4 @@ ProtectSystem=strict
ReadWritePaths=/var/lib/stalwart /var/log/stalwart /opt/stalwart/data ReadWritePaths=/var/lib/stalwart /var/log/stalwart /opt/stalwart/data
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
+20
View File
@@ -0,0 +1,20 @@
---
name: stern
github: stern/stern
description: Multi pod and container log tailing for Kubernetes.
arch: amd64
platform: linux
maintainer: stern
homepage: https://github.com/stern/stern
license: Apache-2.0
builds:
- repository:
- almalinux/el8
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
release: 1
version: 1.33.1
- repository:
- almalinux/el9
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
release: 1
version: 1.33.1
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/bash
set -e
wget -O /app/stern_${PACKAGE_VERSION}_linux_amd64.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/stern/stern/releases/download/v${PACKAGE_VERSION}/stern_${PACKAGE_VERSION}_linux_amd64.tar.gz
tar xf /app/stern_${PACKAGE_VERSION}_linux_amd64.tar.gz
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
+30
View File
@@ -0,0 +1,30 @@
# nfpm.yaml
name: ${PACKAGE_NAME}
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: ${PACKAGE_ARCH}
platform: ${PACKAGE_PLATFORM}
section: default
priority: extra
description: "${PACKAGE_DESCRIPTION}"
maintainer: ${PACKAGE_MAINTAINER}
homepage: ${PACKAGE_HOMEPAGE}
license: ${PACKAGE_LICENSE}
disable_globbing: false
replaces:
- stern
provides:
- stern
contents:
- src: /app/stern
dst: /usr/bin/stern
file_info:
mode: 0755
owner: root
group: root

Some files were not shown because too many files have changed in this diff Show More