From f057d6e72f602a14fa66879333e8ed6d1b4883f5 Mon Sep 17 00:00:00 2001 From: Alessio Dal Santo Date: Fri, 23 Jan 2026 16:48:30 +0100 Subject: [PATCH] [CI/CD] Aggiunto tag development-latest per branch development - Aggiunto tag development-latest specifico per il branch development - Aggiunto tag development-latest-windows per immagini Windows - Creato manifest multi-platform per development-latest - Aggiornata documentazione README.md e copilot-instructions.md - Ora development pubblica sia 'latest' che 'development-latest' --- .github/copilot-instructions.md | 7 ++++++- .github/workflows/docker-build.yml | 5 +++++ README.md | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 3141065..7d4c16c 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -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]` diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 55b4c5a..0fbbbe6 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -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' diff --git a/README.md b/README.md index 3c8d7a2..d74a51e 100644 --- a/README.md +++ b/README.md @@ -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)