build: clarify build
Some checks failed
Build and Publish Docker Images / build-and-push (backend) (push) Failing after 2m4s
Build and Publish Docker Images / build-and-push (frontend) (push) Failing after 2m5s

This commit is contained in:
2025-09-03 14:00:31 +02:00
parent e561dd5b74
commit eaa8a7b78d

View File

@@ -5,7 +5,7 @@ on:
branches: branches:
- main - main
tags: tags:
- 'v*' - "v*"
workflow_dispatch: workflow_dispatch:
env: env:
@@ -53,16 +53,17 @@ jobs:
type=sha,prefix={{branch}}-,suffix=-{{date 'YYYYMMDD-HHmmss'}},enable={{is_default_branch}} type=sha,prefix={{branch}}-,suffix=-{{date 'YYYYMMDD-HHmmss'}},enable={{is_default_branch}}
- name: Build and push Docker image - name: Build and push Docker image
id: build
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: ./${{ matrix.service }} context: ./${{ matrix.service }}
file: ./${{ matrix.service }}/Dockerfile dockerfile: ./${{ matrix.service }}/Dockerfile
registry: ${{ env.REGISTRY }}
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha platforms: linux/amd64
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
- name: Image digest - name: Image digest
run: echo "Image pushed with digest ${{ steps.build.outputs.digest }}" run: echo "Image pushed with digest ${{ steps.build.outputs.digest }}"