Add RPM package configuration for helmfile v1.1.7, a declarative tool for deploying Kubernetes Helm charts.
14 lines
402 B
Bash
Executable File
14 lines
402 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
# 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
|
|
|
|
# Extract the binary
|
|
cd /app
|
|
tar -xzf helmfile.tar.gz
|
|
|
|
# Make the binary executable
|
|
chmod +x /app/helmfile
|
|
|
|
# Build the RPM
|
|
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm |