Aggiornamento main #12

Merged
Alessio merged 25 commits from staging into main 2026-03-20 17:20:29 +01:00
2 changed files with 8 additions and 11 deletions
Showing only changes of commit 593c0b686c - Show all commits
+4 -6
View File
@@ -105,15 +105,16 @@ jobs:
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: | tags: |
# Tag based on branch # Tag based on branch - latest only for main
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=raw,value=latest-linux,enable=${{ github.ref == 'refs/heads/main' }} type=raw,value=latest-linux,enable=${{ github.ref == 'refs/heads/main' }}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/development' }} # Development branch - no latest tag
type=raw,value=latest-linux,enable=${{ github.ref == 'refs/heads/development' }}
type=raw,value=development-latest,enable=${{ github.ref == 'refs/heads/development' }} type=raw,value=development-latest,enable=${{ github.ref == 'refs/heads/development' }}
type=raw,value=development-latest-linux,enable=${{ github.ref == 'refs/heads/development' }} type=raw,value=development-latest-linux,enable=${{ github.ref == 'refs/heads/development' }}
# Dev branch
type=raw,value=dev-latest,enable=${{ github.ref == 'refs/heads/dev' }} type=raw,value=dev-latest,enable=${{ github.ref == 'refs/heads/dev' }}
type=raw,value=dev-latest-linux,enable=${{ github.ref == 'refs/heads/dev' }} type=raw,value=dev-latest-linux,enable=${{ github.ref == 'refs/heads/dev' }}
# Staging branch
type=raw,value=staging-latest,enable=${{ github.ref == 'refs/heads/staging' }} type=raw,value=staging-latest,enable=${{ github.ref == 'refs/heads/staging' }}
type=raw,value=staging-latest-linux,enable=${{ github.ref == 'refs/heads/staging' }} type=raw,value=staging-latest-linux,enable=${{ github.ref == 'refs/heads/staging' }}
# Tag with commit sha # Tag with commit sha
@@ -312,9 +313,6 @@ jobs:
if: github.ref == 'refs/heads/development' if: github.ref == 'refs/heads/development'
run: | run: |
IMAGE_LOWER=$(echo "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]') IMAGE_LOWER=$(echo "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]')
docker buildx imagetools create -t ${IMAGE_LOWER}:latest \
${IMAGE_LOWER}:latest-linux \
${IMAGE_LOWER}:latest-windows
docker buildx imagetools create -t ${IMAGE_LOWER}:development-latest \ docker buildx imagetools create -t ${IMAGE_LOWER}:development-latest \
${IMAGE_LOWER}:development-latest-linux \ ${IMAGE_LOWER}:development-latest-linux \
${IMAGE_LOWER}:development-latest-windows ${IMAGE_LOWER}:development-latest-windows
+4 -5
View File
@@ -48,11 +48,13 @@ jobs:
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: | tags: |
# Tag based on branch # Tag based on branch - latest only for main
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/development' }} # Development branch - no latest tag
type=raw,value=development-latest,enable=${{ github.ref == 'refs/heads/development' }} type=raw,value=development-latest,enable=${{ github.ref == 'refs/heads/development' }}
# Dev branch
type=raw,value=dev-latest,enable=${{ github.ref == 'refs/heads/dev' }} type=raw,value=dev-latest,enable=${{ github.ref == 'refs/heads/dev' }}
# Staging branch
type=raw,value=staging-latest,enable=${{ github.ref == 'refs/heads/staging' }} type=raw,value=staging-latest,enable=${{ github.ref == 'refs/heads/staging' }}
# Tag with commit sha # Tag with commit sha
type=sha,prefix={{branch}}-,format=short type=sha,prefix={{branch}}-,format=short
@@ -173,9 +175,6 @@ jobs:
if: github.ref == 'refs/heads/development' if: github.ref == 'refs/heads/development'
run: | run: |
IMAGE_LOWER=$(echo "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]') 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
docker buildx imagetools create -t ${IMAGE_LOWER}:development-latest \ docker buildx imagetools create -t ${IMAGE_LOWER}:development-latest \
${IMAGE_LOWER}:development-latest \ ${IMAGE_LOWER}:development-latest \
${IMAGE_LOWER}:development-latest-windows ${IMAGE_LOWER}:development-latest-windows