Add RPM package configuration for vals, a configuration management tool that validates and manages configuration values from various backends.
14 lines
382 B
Bash
Executable File
14 lines
382 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
# 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
|
|
|
|
# Extract the binary
|
|
cd /app
|
|
tar -xzf vals.tar.gz
|
|
|
|
# Make the binary executable
|
|
chmod +x /app/vals
|
|
|
|
# Build the RPM
|
|
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm |