#!/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