Fix: Corretto manifest multi-platform per Gitea Actions #6

Merged
Alessio merged 1 commits from development into staging 2026-01-25 17:27:40 +01:00
+10 -5
View File
@@ -66,10 +66,15 @@ jobs:
tags: | tags: |
# Tag based on branch # Tag based on branch
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,enable=${{ github.ref == 'refs/heads/development' }} type=raw,value=latest,enable=${{ github.ref == 'refs/heads/development' }}
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=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=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' }}
# Tag with commit sha # Tag with commit sha
type=sha,prefix={{branch}}-,format=short type=sha,prefix={{branch}}-,format=short
# Tag with date # Tag with date
@@ -197,7 +202,7 @@ jobs:
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 \ docker buildx imagetools create -t ${IMAGE_LOWER}:latest \
${IMAGE_LOWER}:latest \ ${IMAGE_LOWER}:latest-linux \
${IMAGE_LOWER}:latest-windows ${IMAGE_LOWER}:latest-windows
- name: Create and push manifest for development branch - name: Create and push manifest for development branch
@@ -205,10 +210,10 @@ jobs:
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 \ docker buildx imagetools create -t ${IMAGE_LOWER}:latest \
${IMAGE_LOWER}:latest \ ${IMAGE_LOWER}:latest-linux \
${IMAGE_LOWER}:latest-windows ${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-linux \
${IMAGE_LOWER}:development-latest-windows ${IMAGE_LOWER}:development-latest-windows
- name: Create and push manifest for dev branch - name: Create and push manifest for dev branch
@@ -216,7 +221,7 @@ jobs:
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}:dev-latest \ docker buildx imagetools create -t ${IMAGE_LOWER}:dev-latest \
${IMAGE_LOWER}:dev-latest \ ${IMAGE_LOWER}:dev-latest-linux \
${IMAGE_LOWER}:dev-latest-windows ${IMAGE_LOWER}:dev-latest-windows
- name: Create and push manifest for staging branch - name: Create and push manifest for staging branch
@@ -224,5 +229,5 @@ jobs:
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}:staging-latest \ docker buildx imagetools create -t ${IMAGE_LOWER}:staging-latest \
${IMAGE_LOWER}:staging-latest \ ${IMAGE_LOWER}:staging-latest-linux \
${IMAGE_LOWER}:staging-latest-windows ${IMAGE_LOWER}:staging-latest-windows