[CI/CD] Aggiornamento GitHub Actions per branch development con tag latest
- Aggiunto supporto per tag 'latest' anche dal branch development - Aggiunto manifest multi-platform per development branch - Aggiornata documentazione README.md e copilot-instructions.md - Il tag latest ora viene pubblicato da main E development per garantire accesso alle ultime funzionalità
This commit is contained in:
@@ -50,6 +50,7 @@ jobs:
|
||||
tags: |
|
||||
# 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=dev-latest,enable=${{ github.ref == 'refs/heads/dev' }}
|
||||
type=raw,value=staging-latest,enable=${{ github.ref == 'refs/heads/staging' }}
|
||||
# Tag with commit sha
|
||||
@@ -107,6 +108,7 @@ jobs:
|
||||
tags: |
|
||||
# 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=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
|
||||
@@ -165,6 +167,14 @@ jobs:
|
||||
${IMAGE_LOWER}:latest \
|
||||
${IMAGE_LOWER}:latest-windows
|
||||
|
||||
- name: Create and push manifest for development branch
|
||||
if: github.ref == 'refs/heads/development'
|
||||
run: |
|
||||
IMAGE_LOWER=$(echo "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]')
|
||||
docker buildx imagetools create -t ${IMAGE_LOWER}:latest \
|
||||
${IMAGE_LOWER}:latest \
|
||||
${IMAGE_LOWER}:latest-windows
|
||||
|
||||
- name: Create and push manifest for dev branch
|
||||
if: github.ref == 'refs/heads/dev'
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user