-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup-deployment.sh
More file actions
37 lines (28 loc) · 955 Bytes
/
setup-deployment.sh
File metadata and controls
37 lines (28 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Quick setup script to make all scripts executable and run the main setup
set -e
# Color codes for output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
echo -e "${BLUE}=== Trends.Earth GitHub Actions Setup ===${NC}"
echo
# Make scripts executable
chmod +x scripts/setup-github-deployment.sh
chmod +x scripts/setup-ssh-keys.sh
echo -e "${GREEN}✅ Made scripts executable${NC}"
echo
echo "Available setup scripts:"
echo "1. ./scripts/setup-github-deployment.sh - Main deployment setup (IAM + GitHub secrets)"
echo "2. ./scripts/setup-ssh-keys.sh - SSH key management"
echo
echo "For detailed instructions, see: scripts/README.md"
echo
read -p "Do you want to run the main deployment setup now? (y/N): " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
./scripts/setup-github-deployment.sh
else
echo "You can run the setup scripts manually when ready."
echo "Start with: ./scripts/setup-github-deployment.sh"
fi