Files
Poseidon/scripts/configure-manifests.sh
Moritz Jörg 27e54a7e1d feat: migrate to nix-actions and modernize build infrastructure
This commit series completes a major infrastructure overhaul:

- Migrate from manual GitHub Actions YAML to nix-actions workflow generation
- Add automated dependency update workflow with scheduled runs
- Add comprehensive Nix package definitions for all components (atlantis, sorcerer, archivist, etc.)
- Create containerized builds with proper Docker support
- Wrap scripts inside nix for better dependency management and shellcheck

The build system now uses pure Nix expressions for both local development
and CI/CD, providing better reproducibility and maintainability.
2025-08-12 09:49:22 +02:00

19 lines
421 B
Bash
Executable File

#!/usr/bin/env bash
top="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
if [ $# = 1 ] || [ $# = 2 ]; then
env=$1
ns=${2:-atlantis}
else
echo "usage: configure-manifests.sh env [namespace]"
exit 1
fi
"$top/init-namespace.sh" "$ns"
if [ -d "$top/../manifests" ]; then
for i in "$top"/../manifests/*.yaml; do
sed "s/<x>-/$env-/g" "$i" | kubectl apply -n "$ns" -f -
done
fi