fix: Correct YAML syntax errors in docker-build workflow

This commit is contained in:
Alessio Dal Santo
2026-01-16 14:25:56 +01:00
parent 999bdf3e39
commit a86d5c936b
+18 -18
View File
@@ -112,6 +112,7 @@ jobs:
# Tag with commit sha
type=sha,prefix={{branch}}-windows-,format=short
# Tag with date
type=raw,value={{branch}}-windows-{{date 'YYYYMMDD-HHmmss'}}
flavor: |
latest=false
@@ -137,8 +138,7 @@ jobs:
}
# Remove temporary tag
docker rmi "${imageName}:temp-windows" }
}
docker rmi "${imageName}:temp-windows"
shell: pwsh
create-manifest:
@@ -146,7 +146,21 @@ jobs:
runs-on: ubuntu-latest
needs: [build-linux, build-windows]
permissions:
contIMAGE_LOWER=$(echo "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]')
contents: read
packages: write
steps:
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create and push manifest for main branch
if: github.ref == 'refs/heads/main'
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
@@ -165,18 +179,4 @@ jobs:
IMAGE_LOWER=$(echo "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]')
docker buildx imagetools create -t ${IMAGE_LOWER}:staging-latest \
${IMAGE_LOWER}:staging-latest \
${IMAGE_LOWER}:latest-windows
- name: Create and push manifest for dev branch
if: github.ref == 'refs/heads/dev'
run: |
docker buildx imagetools create -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev-latest \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev-latest \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:dev-latest-windows
- name: Create and push manifest for staging branch
if: github.ref == 'refs/heads/staging'
run: |
docker buildx imagetools create -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:staging-latest \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:staging-latest \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:staging-latest-windows
${IMAGE_LOWER}:staging-latest-windows