fix workflow

This commit is contained in:
andreicscs
2026-03-27 12:36:00 +01:00
parent 8ee7a6c14f
commit 402042cc5e
+7 -4
View File
@@ -28,18 +28,21 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# --- THIS IS WHERE THE TAG RULES BELONG ---
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}-${{ matrix.component }}
tags: |
type=ref,event=branch
type=raw,value=latest,enable={{is_default_branch}}
# --- THIS IS THE BUILDER THAT USES THE RULES ---
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./${{ matrix.component }}
push: true
tags: |
type=ref,event=branch
type=raw,value=latest,enable={{is_default_branch}}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}