Files
dance-lessons-coach/scripts/cicd.sh
Gabriel Radureau 52065c9cf3
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 10s
CI/CD Pipeline / CI Pipeline (push) Failing after 13s
refactor: convert all DanceLessonsCoach mentions to kebab-case
2026-04-07 19:11:39 +02:00

76 lines
2.2 KiB
Bash
Executable File

#!/bin/bash
# dance-lessons-coach CI/CD Management Script
# Unified interface for all CI/CD operations
set -e
SCRIPTS_DIR="$(dirname "$0")/cicd"
echo "🚀 dance-lessons-coach CI/CD Management"
echo "===================================="
echo ""
if [ $# -eq 0 ]; then
echo "Available commands:"
echo " validate - Validate CI/CD workflow structure"
echo " test-simple - Test workflow locally without Gitea"
echo " test-local - Test local setup with Gitea configuration"
echo " test-docker - Test with docker compose (requires Gitea runner)"
echo " check-status - Check pipeline status on Gitea"
echo " help - Show this help message"
echo ""
echo "Usage: $0 <command>"
exit 1
fi
COMMAND="$1"
shift
case "$COMMAND" in
validate)
echo "🔍 Validating CI/CD workflow..."
"$SCRIPTS_DIR/validate-workflow.sh"
;;
test-simple)
echo "🧪 Running simple CI/CD test (no Gitea required)..."
"$SCRIPTS_DIR/test-cicd-simple.sh"
;;
test-local)
echo "🧪 Testing local CI/CD setup..."
"$SCRIPTS_DIR/test-cicd-local.sh"
;;
test-docker)
echo "🐳 Testing with docker compose..."
"$SCRIPTS_DIR/test-cicd-docker.sh"
;;
test-act)
echo "🎭 Testing Gitea workflows with GitHub Actions runner..."
"$SCRIPTS_DIR/test-act-local.sh"
;;
check-status)
echo "🔍 Checking pipeline status..."
"$SCRIPTS_DIR/check-pipeline-status.sh"
;;
help|--help|-h)
echo "Available commands:"
echo " validate - Validate CI/CD workflow structure"
echo " test-simple - Test workflow locally without Gitea"
echo " test-local - Test local setup with Gitea configuration"
echo " test-docker - Test with docker compose (requires Gitea runner)"
echo " test-act - Test Gitea workflows with GitHub Actions runner"
echo " check-status - Check pipeline status on Gitea"
echo " help - Show this help message"
;;
*)
echo "❌ Unknown command: $COMMAND"
echo "Run '$0 help' for available commands"
exit 1
;;
esac