#!/usr/bin/bash # Install dependencies dnf install -y unzip # Download and extract consul-cni curl -o /app/consul-cni.zip https://releases.hashicorp.com/consul-cni/${PACKAGE_VERSION}/consul-cni_${PACKAGE_VERSION}_linux_amd64.zip unzip consul-cni.zip # Build the RPM nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm