Compare commits
33 Commits
bfbdd07788
...
benvin/tea
| Author | SHA1 | Date | |
|---|---|---|---|
| 06b1797537 | |||
| 0fd817b13f | |||
| c7eddffbb3 | |||
| 17e0fadd44 | |||
| cfd1972d54 | |||
| 8cbd495004 | |||
| e04f19ed03 | |||
| ff054f42bb | |||
| 818a48fa78 | |||
| 111ea50d80 | |||
| 1b46845734 | |||
| 497b99c328 | |||
| 6b070d8c14 | |||
| dff743a00b | |||
| f408d3d705 | |||
| c4c018b1ee | |||
| b18e34c905 | |||
| cede57a565 | |||
| 07a75008a1 | |||
| 5e1533289f | |||
| cd1eb1f46c | |||
| b585cca9f0 | |||
| a117caae27 | |||
| a0b8d8b806 | |||
| c8bb19d6d6 | |||
| 4976f0e43b | |||
| 745ce03757 | |||
| 3742eabfde | |||
| 5c9fce3607 | |||
| 76f79a7371 | |||
| 8e8285546b | |||
| b15fc0612f | |||
| 1f1b1cfe32 |
@@ -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
|
|
||||||
@@ -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
|
|
||||||
@@ -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:
|
||||||
|
|||||||
@@ -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"
|
||||||
@@ -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"
|
||||||
@@ -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]
|
||||||
@@ -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]
|
||||||
@@ -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
@@ -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
|
||||||
|
|||||||
@@ -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):
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,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
|
||||||
|
|||||||
@@ -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
|
||||||
Executable
+13
@@ -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
|
||||||
@@ -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,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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,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,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
|
||||||
|
|||||||
@@ -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,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
|
||||||
|
|||||||
@@ -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
|
||||||
Executable
+18
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
|
|||||||
@@ -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/
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
Executable
+14
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
Executable
+14
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
|
|||||||
Regular → Executable
+1
-1
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Regular → Executable
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
mkdir -p /opt/openbao-plugins
|
mkdir -p /opt/openbao-plugins
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Regular → Executable
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
mkdir -p /opt/openbao-plugins
|
mkdir -p /opt/openbao-plugins
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Regular → Executable
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Regular → Executable
Regular → Executable
+1
-1
@@ -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
|
||||||
|
|||||||
Regular → Executable
+1
-1
@@ -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
|
||||||
|
|||||||
Regular → Executable
+1
-1
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Regular → Executable
Regular → Executable
+1
-1
@@ -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
|
||||||
|
|||||||
Regular → Executable
+1
-1
@@ -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
|
||||||
|
|||||||
Regular → Executable
+1
-1
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
Executable
+10
@@ -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
|
||||||
@@ -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
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
name: tea
|
||||||
|
github: unknown/tea
|
||||||
|
description: The official CLI for Gitea.
|
||||||
|
arch: amd64
|
||||||
|
platform: linux
|
||||||
|
maintainer: Gitea
|
||||||
|
homepage: https://gitea.com/gitea/tea
|
||||||
|
license: MIT
|
||||||
|
builds:
|
||||||
|
- repository:
|
||||||
|
- almalinux/el8
|
||||||
|
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
|
||||||
|
release: 1
|
||||||
|
version: 0.14.0
|
||||||
|
- repository:
|
||||||
|
- almalinux/el9
|
||||||
|
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
|
||||||
|
release: 1
|
||||||
|
version: 0.14.0
|
||||||
Executable
+10
@@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
curl -L --output /app/tea-linux-amd64 https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/gitea-dl/tea/${PACKAGE_VERSION}/tea-${PACKAGE_VERSION}-linux-amd64
|
||||||
|
chmod +x /app/tea-linux-amd64
|
||||||
|
|
||||||
|
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
|
||||||
|
|
||||||
|
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
|
||||||
@@ -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:
|
||||||
|
- tea
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- tea
|
||||||
|
|
||||||
|
contents:
|
||||||
|
- src: /app/tea-linux-amd64
|
||||||
|
dst: /usr/bin/tea
|
||||||
|
file_info:
|
||||||
|
mode: 0755
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
@@ -13,4 +13,4 @@ unzip terraform.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
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Download terragrunt binary
|
# Download terragrunt binary
|
||||||
wget -O /app/terragrunt https://github.com/gruntwork-io/terragrunt/releases/download/v${PACKAGE_VERSION}/terragrunt_linux_amd64
|
wget -O /app/terragrunt https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/gruntwork-io/terragrunt/releases/download/v${PACKAGE_VERSION}/terragrunt_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
|
||||||
|
|
||||||
# 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,7 +2,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Download tflint binary
|
# Download tflint binary
|
||||||
wget -O /app/tflint_linux_amd64.zip https://github.com/terraform-linters/tflint/releases/download/v${PACKAGE_VERSION}/tflint_linux_amd64.zip
|
wget -O /app/tflint_linux_amd64.zip https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/terraform-linters/tflint/releases/download/v${PACKAGE_VERSION}/tflint_linux_amd64.zip
|
||||||
|
|
||||||
# Extract the binary
|
# Extract the binary
|
||||||
unzip -j /app/tflint_linux_amd64.zip -d /app/
|
unzip -j /app/tflint_linux_amd64.zip -d /app/
|
||||||
@@ -11,4 +11,4 @@ unzip -j /app/tflint_linux_amd64.zip -d /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
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ curl -L -o /app/UNKIN_ROOTCA_2024.crt https://vault.query.consul:8200/v1/pki_roo
|
|||||||
# 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
|
||||||
|
|||||||
@@ -32,7 +32,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
|
||||||
# preinstall: ./scripts/preinstall.sh
|
# preinstall: ./scripts/preinstall.sh
|
||||||
# preremove: ./scripts/preremove.sh
|
# preremove: ./scripts/preremove.sh
|
||||||
# postremove: ./scripts/postremove.sh
|
# postremove: ./scripts/postremove.sh
|
||||||
|
|||||||
Regular → Executable
@@ -38,7 +38,7 @@ contents:
|
|||||||
|
|
||||||
# Scripts to run during installation/removal (optional)
|
# Scripts to run during installation/removal (optional)
|
||||||
scripts:
|
scripts:
|
||||||
preinstall: /app/resources/preinstall.sh
|
preinstall: /app/resources/scripts/preinstall.sh
|
||||||
# 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
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ builds:
|
|||||||
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
|
- image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
|
||||||
release: '1'
|
release: '1'
|
||||||
repository: [almalinux/el8]
|
repository: [almalinux/el8]
|
||||||
version: 7.11.0
|
version: '7.20'
|
||||||
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
|
- image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
|
||||||
release: '1'
|
release: '1'
|
||||||
repository: [almalinux/el9]
|
repository: [almalinux/el9]
|
||||||
version: 7.11.0
|
version: '7.20'
|
||||||
description: WinRAR is a powerful archive manager. It can backup your data and reduce the size of email attachments, open and unpack RAR, ZIP and other files downloaded from Internet, create new archives in RAR and ZIP file format.
|
description: WinRAR is a powerful archive manager. It can backup your data and reduce the size of email attachments, open and unpack RAR, ZIP and other files downloaded from Internet, create new archives in RAR and ZIP file format.
|
||||||
github: unknown/unrar
|
github: unknown/unrar
|
||||||
homepage: https://www.rarlab.com/
|
homepage: https://www.rarlab.com/
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ set -e
|
|||||||
|
|
||||||
# Download and extract unrar (with version formatting)
|
# Download and extract unrar (with version formatting)
|
||||||
export DOWNLOAD_VERSION=$(echo $PACKAGE_VERSION | sed s/\\.//)
|
export DOWNLOAD_VERSION=$(echo $PACKAGE_VERSION | sed s/\\.//)
|
||||||
curl -L -o /app/rarlinux.tar.gz https://www.rarlab.com/rar/rarlinux-x64-${DOWNLOAD_VERSION}.tar.gz
|
curl -L -o /app/rarlinux.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/rarlab/rar/rarlinux-x64-${DOWNLOAD_VERSION}.tar.gz
|
||||||
tar xf /app/rarlinux.tar.gz
|
tar xf /app/rarlinux.tar.gz -C /app
|
||||||
mv /app/rar/unrar /app/
|
mv /app/rar/unrar /app/
|
||||||
|
|
||||||
# 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
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Download and extract uv
|
# Download and extract uv
|
||||||
wget -O /app/uv-x86_64-unknown-linux-gnu.tar.gz https://github.com/astral-sh/uv/releases/download/${PACKAGE_VERSION}/uv-x86_64-unknown-linux-gnu.tar.gz
|
wget -O /app/uv-x86_64-unknown-linux-gnu.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/astral-sh/uv/releases/download/${PACKAGE_VERSION}/uv-x86_64-unknown-linux-gnu.tar.gz
|
||||||
tar xf /app/uv-x86_64-unknown-linux-gnu.tar.gz
|
tar xf /app/uv-x86_64-unknown-linux-gnu.tar.gz
|
||||||
mv /app/uv-x86_64-unknown-linux-gnu/* /app/
|
mv /app/uv-x86_64-unknown-linux-gnu/* /app/
|
||||||
|
|
||||||
@@ -11,4 +11,4 @@ mv /app/uv-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
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Download the required files
|
# Download the required files
|
||||||
curl -L -o /app/vals.tar.gz https://github.com/helmfile/vals/releases/download/v${PACKAGE_VERSION}/vals_${PACKAGE_VERSION}_linux_amd64.tar.gz
|
curl -L -o /app/vals.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/helmfile/vals/releases/download/v${PACKAGE_VERSION}/vals_${PACKAGE_VERSION}_linux_amd64.tar.gz
|
||||||
|
|
||||||
# Extract the binary
|
# Extract the binary
|
||||||
cd /app
|
cd /app
|
||||||
@@ -15,4 +15,4 @@ chmod +x /app/vals
|
|||||||
# 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
|
||||||
|
|||||||
@@ -13,4 +13,4 @@ unzip vault.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
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ set -e
|
|||||||
|
|
||||||
# Download and extract victoria-logs
|
# Download and extract victoria-logs
|
||||||
curl -L -o /app/victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
curl -L -o /app/victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
||||||
https://github.com/VictoriaMetrics/VictoriaLogs/releases/download/v${PACKAGE_VERSION}/victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/VictoriaMetrics/VictoriaLogs/releases/download/v${PACKAGE_VERSION}/victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||||
tar xf victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
tar xf victoria-logs-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||||
|
|
||||||
# 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
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ set -e
|
|||||||
|
|
||||||
# Download and extract vlutils
|
# Download and extract vlutils
|
||||||
curl -L -o /app/vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
curl -L -o /app/vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
||||||
https://github.com/VictoriaMetrics/VictoriaLogs/releases/download/v${PACKAGE_VERSION}/vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/VictoriaMetrics/VictoriaLogs/releases/download/v${PACKAGE_VERSION}/vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||||
tar xf vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
tar xf vlutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||||
|
|
||||||
# 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
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Download the required files
|
# Download the required files
|
||||||
curl -L -o /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
curl -L -o /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||||
tar xf vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
tar xf vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||||
|
|
||||||
# Process the nfpm.yaml template with environment variables
|
# Process the nfpm.yaml template with environment variables
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Download the required files
|
# Download the required files
|
||||||
curl -L -o /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
curl -L -o /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||||
tar xf vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
tar xf vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||||
|
|
||||||
# Process the nfpm.yaml template with environment variables
|
# Process the nfpm.yaml template with environment variables
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Download the required files
|
# Download the required files
|
||||||
curl -L -o /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
curl -L -o /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||||
tar xf victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
tar xf victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||||
|
|
||||||
# Process the nfpm.yaml template with environment variables
|
# Process the nfpm.yaml template with environment variables
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Download the required files
|
# Download the required files
|
||||||
curl -L -o /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
curl -L -o /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||||
tar -xf /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz -C /app
|
tar -xf /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz -C /app
|
||||||
|
|
||||||
# Process the nfpm.yaml template with environment variables
|
# Process the nfpm.yaml template with environment variables
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Download the required files
|
# Download the required files
|
||||||
curl -L -o /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
curl -L -o /app/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||||
tar xf victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
tar xf victoria-metrics-linux-amd64-v${PACKAGE_VERSION}-cluster.tar.gz
|
||||||
|
|
||||||
# Process the nfpm.yaml template with environment variables
|
# Process the nfpm.yaml template with environment variables
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ set -e
|
|||||||
|
|
||||||
# Download and extract vmutils
|
# Download and extract vmutils
|
||||||
curl -L -o /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
curl -L -o /app/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz \
|
||||||
https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/VictoriaMetrics/VictoriaMetrics/releases/download/v${PACKAGE_VERSION}/vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||||
tar xf vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
tar xf vmutils-linux-amd64-v${PACKAGE_VERSION}.tar.gz
|
||||||
|
|
||||||
# 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
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Download and extract xh
|
# Download and extract xh
|
||||||
wget -O /app/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl.tar.gz https://github.com/ducaale/xh/releases/download/v${PACKAGE_VERSION}/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl.tar.gz
|
wget -O /app/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl.tar.gz https://artifactapi.k8s.syd1.au.unkin.net/api/v1/remote/github/ducaale/xh/releases/download/v${PACKAGE_VERSION}/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl.tar.gz
|
||||||
tar xf /app/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl.tar.gz
|
tar xf /app/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl.tar.gz
|
||||||
mv /app/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl/* /app/
|
mv /app/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl/* /app/
|
||||||
|
|
||||||
@@ -11,4 +11,4 @@ mv /app/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl/* /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
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user