✨ refactor: convert all DanceLessonsCoach mentions to kebab-case
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
## Context
|
||||
|
||||
DanceLessonsCoach requires a robust CI/CD pipeline that:
|
||||
dance-lessons-coach requires a robust CI/CD pipeline that:
|
||||
|
||||
1. **Primary Platform**: Gitea (self-hosted Git service)
|
||||
2. **Mirror Support**: GitHub and GitLab mirrors for visibility and backup
|
||||
@@ -69,7 +69,7 @@ graph TD
|
||||
|
||||
```yaml
|
||||
# .github/workflows/main.yml
|
||||
name: DanceLessonsCoach CI/CD
|
||||
name: dance-lessons-coach CI/CD
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -140,10 +140,10 @@ jobs:
|
||||
# README.md
|
||||
|
||||
[](https://ci.dancelessonscoach.org)
|
||||
[](https://github.com/yourorg/DanceLessonsCoach/actions)
|
||||
[](https://gitlab.com/yourorg/DanceLessonsCoach/-/pipelines)
|
||||
[](https://goreportcard.com/report/github.com/yourorg/DanceLessonsCoach)
|
||||
[](https://codecov.io/gh/yourorg/DanceLessonsCoach)
|
||||
[](https://github.com/yourorg/dance-lessons-coach/actions)
|
||||
[](https://gitlab.com/yourorg/dance-lessons-coach/-/pipelines)
|
||||
[](https://goreportcard.com/report/github.com/yourorg/dance-lessons-coach)
|
||||
[](https://codecov.io/gh/yourorg/dance-lessons-coach)
|
||||
```
|
||||
|
||||
### 5. Mirror Synchronization Strategy
|
||||
@@ -170,7 +170,7 @@ mkdir -p .gitea/workflows
|
||||
|
||||
# 2. Create main workflow file with Arcodange-specific configuration
|
||||
cat > .gitea/workflows/ci-cd.yaml << 'EOF'
|
||||
name: DanceLessonsCoach CI/CD
|
||||
name: dance-lessons-coach CI/CD
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -200,41 +200,41 @@ jobs:
|
||||
- name: Notify internal systems
|
||||
if: always()
|
||||
run: |
|
||||
curl -X POST "$GITEA_INTERNAL/api/v1/repos/yourorg/DanceLessonsCoach/statuses/$(git rev-parse HEAD)" \
|
||||
curl -X POST "$GITEA_INTERNAL/api/v1/repos/yourorg/dance-lessons-coach/statuses/$(git rev-parse HEAD)" \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"state\": \"$([ $? -eq 0 ] && echo 'success' || echo 'failure')\", \"context\": \"ci/build-test\"}"
|
||||
EOF
|
||||
|
||||
# 3. Enable Gitea CI/CD in repo settings (Arcodange instance)
|
||||
# - Go to: https://gitea.arcodange.lab/arcodange/DanceLessonsCoach/settings/actions
|
||||
# - Go to: https://gitea.arcodange.lab/arcodange/dance-lessons-coach/settings/actions
|
||||
# - Enable GitHub Actions
|
||||
# - Configure runner to use internal network (192.168.1.202)
|
||||
# - Set up GITEA_TOKEN for API access
|
||||
# - SSH URL: ssh://git@192.168.1.202:2222/arcodange/DanceLessonsCoach.git
|
||||
# - SSH URL: ssh://git@192.168.1.202:2222/arcodange/dance-lessons-coach.git
|
||||
|
||||
# 4. Add STATUS_BADGES.md with Arcodange-specific URLs
|
||||
cat > STATUS_BADGES.md << 'EOF'
|
||||
## Arcodange Gitea Badges
|
||||
|
||||
```markdown
|
||||
[](https://gitea.arcodange.fr/arcodange/DanceLessonsCoach)
|
||||
[](https://gitea.arcodange.fr/arcodange/DanceLessonsCoach/-/pipelines)
|
||||
[](https://gitea.arcodange.fr/arcodange/dance-lessons-coach)
|
||||
[](https://gitea.arcodange.fr/arcodange/dance-lessons-coach/-/pipelines)
|
||||
```
|
||||
|
||||
**Configuration Details:**
|
||||
- Organization: arcodange
|
||||
- Repository: DanceLessonsCoach
|
||||
- Repository: dance-lessons-coach
|
||||
- Internal URL: https://gitea.arcodange.lab/
|
||||
- External URL: https://gitea.arcodange.fr/
|
||||
- SSH URL: ssh://git@192.168.1.202:2222/arcodange/DanceLessonsCoach.git
|
||||
- SSH URL: ssh://git@192.168.1.202:2222/arcodange/dance-lessons-coach.git
|
||||
- Badges use external URL with full org/repo path
|
||||
- CI/CD uses internal URL for faster network access
|
||||
EOF
|
||||
|
||||
# 5. Configure CI/CD runners on internal network
|
||||
# - Set up runners to access: https://gitea.arcodange.lab/
|
||||
# - Configure SSH access: ssh://git@192.168.1.202:2222/arcodange/DanceLessonsCoach.git
|
||||
# - Configure SSH access: ssh://git@192.168.1.202:2222/arcodange/dance-lessons-coach.git
|
||||
# - Ensure runners have network access to internal services (192.168.1.202:2222)
|
||||
# - Configure runners with proper GITEA_TOKEN
|
||||
# - Test connection: curl https://gitea.arcodange.lab/api/v1/version
|
||||
@@ -332,18 +332,18 @@ cat > STATUS_BADGES.md << 'EOF'
|
||||
|
||||
## GitHub Mirror
|
||||
```markdown
|
||||
[](https://github.com/yourorg/DanceLessonsCoach/actions)
|
||||
[](https://github.com/yourorg/dance-lessons-coach/actions)
|
||||
```
|
||||
|
||||
## GitLab Mirror
|
||||
```markdown
|
||||
[](https://gitlab.com/yourorg/DanceLessonsCoach/-/pipelines)
|
||||
[](https://gitlab.com/yourorg/dance-lessons-coach/-/pipelines)
|
||||
```
|
||||
|
||||
## Code Quality
|
||||
```markdown
|
||||
[](https://goreportcard.com/report/github.com/yourorg/DanceLessonsCoach)
|
||||
[](https://codecov.io/gh/yourorg/DanceLessonsCoach)
|
||||
[](https://goreportcard.com/report/github.com/yourorg/dance-lessons-coach)
|
||||
[](https://codecov.io/gh/yourorg/dance-lessons-coach)
|
||||
```
|
||||
EOF
|
||||
|
||||
@@ -452,7 +452,7 @@ docker run --rm \
|
||||
-e GITEA_INTERNAL="https://gitea.arcodange.lab/" \
|
||||
-e GITEA_EXTERNAL="https://gitea.arcodange.fr/" \
|
||||
-e GITEA_ORG="arcodange" \
|
||||
-e GITEA_REPO="DanceLessonsCoach" \
|
||||
-e GITEA_REPO="dance-lessons-coach" \
|
||||
gitea/act_runner:latest \
|
||||
act -W .gitea/workflows/ci-cd.yaml --rm
|
||||
```
|
||||
@@ -472,7 +472,7 @@ act -W .gitea/workflows/ci-cd.yaml \
|
||||
# 3. With specific event simulation
|
||||
act push -W .gitea/workflows/ci-cd.yaml \
|
||||
--env GITEA_ORG=arcodange \
|
||||
--env GITEA_REPO=DanceLessonsCoach
|
||||
--env GITEA_REPO=dance-lessons-coach
|
||||
```
|
||||
|
||||
### Pipeline Status Checking Scripts
|
||||
@@ -489,10 +489,10 @@ echo "🔍 Checking CI/CD Pipeline Status"
|
||||
echo "================================"
|
||||
|
||||
# 1. Gitea (Primary) - Internal URL
|
||||
if curl -s -o /dev/null -w "%{http_code}" "https://gitea.arcodange.lab/api/v1/repos/arcodange/DanceLessonsCoach/actions/workflows" | grep -q "200"; then
|
||||
if curl -s -o /dev/null -w "%{http_code}" "https://gitea.arcodange.lab/api/v1/repos/arcodange/dance-lessons-coach/actions/workflows" | grep -q "200"; then
|
||||
echo "✅ Gitea Internal API: Accessible"
|
||||
# Get workflow list
|
||||
WORKFLOWS=$(curl -s "https://gitea.arcodange.lab/api/v1/repos/arcodange/DanceLessonsCoach/actions/workflows" | jq -r '.[] | .name + " (" + .file_name + ")"')
|
||||
WORKFLOWS=$(curl -s "https://gitea.arcodange.lab/api/v1/repos/arcodange/dance-lessons-coach/actions/workflows" | jq -r '.[] | .name + " (" + .file_name + ")"')
|
||||
echo "📋 Gitea Workflows:"
|
||||
echo "$WORKFLOWS" | sed 's/^/ - /'
|
||||
else
|
||||
@@ -502,9 +502,9 @@ fi
|
||||
# 2. Gitea (External) - Public URL
|
||||
echo ""
|
||||
echo "🌐 Gitea External Status:"
|
||||
if curl -s -o /dev/null -w "%{http_code}" "https://gitea.arcodange.fr/arcodange/DanceLessonsCoach" | grep -q "200"; then
|
||||
if curl -s -o /dev/null -w "%{http_code}" "https://gitea.arcodange.fr/arcodange/dance-lessons-coach" | grep -q "200"; then
|
||||
echo "✅ Gitea External: Accessible"
|
||||
echo "🔗 Repository: https://gitea.arcodange.fr/arcodange/DanceLessonsCoach"
|
||||
echo "🔗 Repository: https://gitea.arcodange.fr/arcodange/dance-lessons-coach"
|
||||
else
|
||||
echo "❌ Gitea External: Not accessible"
|
||||
fi
|
||||
@@ -512,7 +512,7 @@ fi
|
||||
# 3. Check badge API
|
||||
echo ""
|
||||
echo "🏷️ Badge API Status:"
|
||||
BADGE_URL="https://gitea.arcodange.fr/api/badges/arcodange/DanceLessonsCoach/status"
|
||||
BADGE_URL="https://gitea.arcodange.fr/api/badges/arcodange/dance-lessons-coach/status"
|
||||
if curl -s -o /dev/null -w "%{http_code}" "$BADGE_URL" | grep -q "200"; then
|
||||
echo "✅ Badge API: Accessible"
|
||||
echo "🔗 Badge URL: $BADGE_URL"
|
||||
@@ -541,8 +541,8 @@ echo "✅ Arcodange conventions: Matches webapp workflow style"
|
||||
echo ""
|
||||
echo "💡 Next Steps:"
|
||||
echo " 1. Push to trigger workflow: git push origin main"
|
||||
echo " 2. Check Gitea Actions: https://gitea.arcodange.lab/arcodange/DanceLessonsCoach/actions"
|
||||
echo " 3. Monitor badges: https://gitea.arcodange.fr/arcodange/DanceLessonsCoach"
|
||||
echo " 2. Check Gitea Actions: https://gitea.arcodange.lab/arcodange/dance-lessons-coach/actions"
|
||||
echo " 3. Monitor badges: https://gitea.arcodange.fr/arcodange/dance-lessons-coach"
|
||||
```
|
||||
|
||||
### Workflow Validation Script
|
||||
@@ -659,7 +659,7 @@ services:
|
||||
- GITEA_INTERNAL=https://gitea.arcodange.lab/
|
||||
- GITEA_EXTERNAL=https://gitea.arcodange.fr/
|
||||
- GITEA_ORG=arcodange
|
||||
- GITEA_REPO=DanceLessonsCoach
|
||||
- GITEA_REPO=dance-lessons-coach
|
||||
command: act -W .gitea/workflows/ci-cd.yaml --rm
|
||||
|
||||
yamllint:
|
||||
|
||||
Reference in New Issue
Block a user