23 lines
516 B
Python
23 lines
516 B
Python
#!/usr/bin/env python3
|
|
"""Generate .env.make for CI/CD without generating secrets."""
|
|
|
|
import sys
|
|
|
|
from config_loader import load_build_config, write_env_make
|
|
|
|
|
|
def main():
|
|
"""Generate .env.make from pyproject.toml."""
|
|
try:
|
|
config = load_build_config()
|
|
write_env_make(config)
|
|
print("✅ .env.make generated successfully.")
|
|
return 0
|
|
except Exception as e:
|
|
print(f"❌ Failed to generate .env.make: {e}")
|
|
return 1
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit()
|