#!/usr/bin/bash set -e # Download terragrunt binary wget -O /app/terragrunt https://github.com/gruntwork-io/terragrunt/releases/download/v${PACKAGE_VERSION}/terragrunt_linux_amd64 # 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