jobs instead of steps in build output

This commit is contained in:
2025-11-17 12:28:03 +01:00
parent 75547cdb3c
commit f8e94e0f99

View File

@@ -32,13 +32,13 @@ on:
outputs:
tag:
description: 'Built image tag'
value: ${{ steps.build.outputs.tag }}
value: ${{ jobs.build.outputs.tag }}
image:
description: 'Built image name'
value: ${{ steps.build.outputs.image }}
value: ${{ jobs.build.outputs.image }}
sha:
description: 'Git SHA used for the build'
value: ${{ steps.build.outputs.sha }}
value: ${{ jobs.build.outputs.sha }}
jobs:
build:
name: Build Docker Image
@@ -74,6 +74,10 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ inputs.image }}/cache
cache-to: type=registry,ref=${{ inputs.image }}/cache,mode=max
- name: Set outputs
id: facts
run: |
echo "sha=${{ gitea.event.release.target_commitish }}" >> $GITHUB_OUTPUT
outputs:
tag: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
image: ${{ inputs.image }}