Merge pull request #4 from AlessioDalsi/development
Aggiornamento del ramo di produzione
This commit is contained in:
@@ -369,10 +369,15 @@
|
||||
|
||||
### CI/CD Pipeline:
|
||||
- **Branch `main`**: Pubblica immagini Docker con tag `latest`
|
||||
- **Branch `development`**: Pubblica immagini Docker con tag `latest` (per testing continuo)
|
||||
- **Branch `development`**: Pubblica immagini Docker con tag `latest` e `development-latest`
|
||||
- **Branch `staging`**: Pubblica immagini Docker con tag `staging-latest`
|
||||
- **Ogni commit**: Crea tag con SHA e timestamp per tracciabilità
|
||||
|
||||
**Note sui Tag Docker**:
|
||||
- `latest`: Condiviso tra `main` e `development` per garantire accesso alle ultime funzionalità
|
||||
- `development-latest`: Specifico per il branch `development`, utile per distinguere le versioni in sviluppo
|
||||
- `staging-latest`: Dedicato al branch `staging` per test pre-produzione
|
||||
|
||||
### Commit Messages:
|
||||
- Formato: `[Tipo] Descrizione breve`
|
||||
- Tipi: `[Feature]`, `[Fix]`, `[Refactor]`, `[Docs]`, `[Test]`
|
||||
|
||||
@@ -51,6 +51,7 @@ jobs:
|
||||
# Tag based on branch
|
||||
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
|
||||
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/development' }}
|
||||
type=raw,value=development-latest,enable=${{ github.ref == 'refs/heads/development' }}
|
||||
type=raw,value=dev-latest,enable=${{ github.ref == 'refs/heads/dev' }}
|
||||
type=raw,value=staging-latest,enable=${{ github.ref == 'refs/heads/staging' }}
|
||||
# Tag with commit sha
|
||||
@@ -109,6 +110,7 @@ jobs:
|
||||
# Tag based on branch with windows suffix
|
||||
type=raw,value=latest-windows,enable=${{ github.ref == 'refs/heads/main' }}
|
||||
type=raw,value=latest-windows,enable=${{ github.ref == 'refs/heads/development' }}
|
||||
type=raw,value=development-latest-windows,enable=${{ github.ref == 'refs/heads/development' }}
|
||||
type=raw,value=dev-latest-windows,enable=${{ github.ref == 'refs/heads/dev' }}
|
||||
type=raw,value=staging-latest-windows,enable=${{ github.ref == 'refs/heads/staging' }}
|
||||
# Tag with commit sha
|
||||
@@ -174,6 +176,9 @@ jobs:
|
||||
docker buildx imagetools create -t ${IMAGE_LOWER}:latest \
|
||||
${IMAGE_LOWER}:latest \
|
||||
${IMAGE_LOWER}:latest-windows
|
||||
docker buildx imagetools create -t ${IMAGE_LOWER}:development-latest \
|
||||
${IMAGE_LOWER}:development-latest \
|
||||
${IMAGE_LOWER}:development-latest-windows
|
||||
|
||||
- name: Create and push manifest for dev branch
|
||||
if: github.ref == 'refs/heads/dev'
|
||||
|
||||
@@ -159,10 +159,11 @@ docker build -t data-coupler:local-windows -f Dockerfile.windows .
|
||||
**Immagini Disponibili:**
|
||||
- **Linux/Multi-platform**: `ghcr.io/alessiodalsi/data-coupler:latest`
|
||||
- **Windows**: `ghcr.io/alessiodalsi/data-coupler:latest-windows`
|
||||
- **Development**: `ghcr.io/alessiodalsi/data-coupler:development-latest`
|
||||
- **Dev**: `ghcr.io/alessiodalsi/data-coupler:dev-latest`
|
||||
- **Staging**: `ghcr.io/alessiodalsi/data-coupler:staging-latest`
|
||||
|
||||
**Note**: Il tag `latest` viene automaticamente aggiornato sia dal branch `main` che dal branch `development` per garantire che le ultime funzionalità siano sempre disponibili.
|
||||
**Note**: Il tag `latest` viene automaticamente aggiornato sia dal branch `main` che dal branch `development` per garantire che le ultime funzionalità siano sempre disponibili. Il tag `development-latest` è specifico per il branch development.
|
||||
|
||||
📚 **Documentazione Docker Completa**: Vedi [DOCKER_DEPLOYMENT.md](DOCKER_DEPLOYMENT.md) e [GITHUB_ACTIONS_SETUP.md](GITHUB_ACTIONS_SETUP.md)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user