Add CI/CD pipeline documentation
هذا الالتزام موجود في:
32
docs/environments.md
Normal file
32
docs/environments.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# Staging vs Production
|
||||
|
||||
## Staging Environment
|
||||
|
||||
Purpose:
|
||||
- Testing before release.
|
||||
- Validate new features.
|
||||
- Detect bugs.
|
||||
- Verify Docker images.
|
||||
- Run integration tests.
|
||||
|
||||
Characteristics:
|
||||
- Mirrors production.
|
||||
- Uses test data.
|
||||
- Safe for experimentation.
|
||||
- Developers and QA have access.
|
||||
|
||||
---
|
||||
|
||||
## Production Environment
|
||||
|
||||
Purpose:
|
||||
- Serve real users.
|
||||
- Provide stable services.
|
||||
- High availability.
|
||||
- Performance optimized.
|
||||
|
||||
Characteristics:
|
||||
- Uses real data.
|
||||
- Restricted access.
|
||||
- Monitored continuously.
|
||||
- Requires approval before deployment.
|
||||
56
docs/ghaymah-cli.md
Normal file
56
docs/ghaymah-cli.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# Ghaymah CLI Integration
|
||||
|
||||
## Install the CLI
|
||||
|
||||
```bash
|
||||
curl -fsSL https://ghaymah.systems/install.sh | bash
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Login
|
||||
|
||||
```bash
|
||||
ghaymah login
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Verify Login
|
||||
|
||||
```bash
|
||||
ghaymah whoami
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Build Docker Image
|
||||
|
||||
```bash
|
||||
docker build -t ghaymah-sre-api .
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Push Image
|
||||
|
||||
```bash
|
||||
docker push registry.ghaymah.systems/<username>/ghaymah-sre-api:latest
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Deploy
|
||||
|
||||
```bash
|
||||
ghaymah deploy \
|
||||
--image registry.ghaymah.systems/<username>/ghaymah-sre-api:latest
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Check Deployment
|
||||
|
||||
```bash
|
||||
ghaymah apps list
|
||||
```
|
||||
المرجع في مشكلة جديدة
حظر مستخدم