rpmbuilder/rpms/consul-cni/resources/nfpm.yaml
Ben Vincent f3b60b7137
All checks were successful
Build / build-9 (pull_request) Successful in 29s
Build / build-8 (pull_request) Successful in 38s
fix: update path for scripts
2025-09-30 21:04:29 +10:00

35 lines
839 B
YAML

# nfpm.yaml
name: consul-cni
version: ${PACKAGE_VERSION}
release: ${PACKAGE_RELEASE}
arch: amd64
platform: linux
section: default
priority: extra
description: "Plugin for Consul on Kubernetes to allow configuring traffic redirection rules without escalated container privileges."
maintainer: Hashicorp
homepage: https://hashicorp.com
license: Mozilla Public License, version 2.0
disable_globbing: false
replaces:
- consul-cni
# Files to include in the package
contents:
- src: /app/consul-cni
dst: /opt/cni/bin/consul-cni
file_info:
mode: 0755
owner: root
group: root
# Scripts to run during installation/removal (optional)
scripts:
preinstall: /app/resources/scripts/preinstall.sh
# postinstall: ./scripts/postinstall.sh
# preremove: ./scripts/preremove.sh
# postremove: ./scripts/postremove.sh