feat(pipeline): Migration from Gitea pipeline to act runner
This commit is contained in:
28
CLAUDE.md
28
CLAUDE.md
@@ -54,7 +54,7 @@ The application follows a **three-tier architecture**:
|
||||
#### Infrastructure
|
||||
- **Containerization**: Docker
|
||||
- **Orchestration**: Docker Compose (dev and prod configurations)
|
||||
- **CI/CD**: Gitea workflows (`.gitea/workflows/pipeline.yaml`)
|
||||
- **CI/CD**: Local act execution with GitHub Actions format (`.github/workflows/pipeline.yaml`)
|
||||
|
||||
---
|
||||
|
||||
@@ -475,6 +475,7 @@ Main config in `src/main/resources/application.yaml`:
|
||||
- pnpm 10.11.0+
|
||||
- Java 21
|
||||
- PostgreSQL (or use Docker)
|
||||
- act (for running CI/CD workflows locally)
|
||||
|
||||
**Frontend**:
|
||||
```bash
|
||||
@@ -501,6 +502,28 @@ docker-compose -f deployment/docker-compose-dev.yaml up
|
||||
docker-compose -f deployment/docker-compose-prod.yaml up
|
||||
```
|
||||
|
||||
### CI/CD with Act
|
||||
|
||||
Workflows are executed locally using nektos/act:
|
||||
|
||||
```bash
|
||||
# List workflows
|
||||
act -l
|
||||
|
||||
# Run specific jobs
|
||||
act -j frontend
|
||||
act -j backend
|
||||
|
||||
# Run all jobs
|
||||
act push
|
||||
|
||||
# Run with secrets (for Docker push/deploy)
|
||||
act push --secret-file .secrets
|
||||
|
||||
# Dry run
|
||||
act -n
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Testing
|
||||
@@ -532,7 +555,8 @@ docker-compose -f deployment/docker-compose-prod.yaml up
|
||||
|
||||
- OpenAPI Specification: `api/legalconsenthub.yml`
|
||||
- Thymeleaf Template: `legalconsenthub-backend/src/main/resources/templates/application_form_template.html`
|
||||
- CI/CD Pipeline: `.gitea/workflows/pipeline.yaml`
|
||||
- CI/CD Pipeline: `.github/workflows/pipeline.yaml`
|
||||
- Act Configuration: `.actrc` and `.secrets.example`
|
||||
- Database Management Script: `manage-db.sh`
|
||||
- Test Data: `testdata.json`
|
||||
- IT System Config: `it-system.json`
|
||||
|
||||
Reference in New Issue
Block a user