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: outputs:
tag: tag:
description: 'Built image tag' description: 'Built image tag'
value: ${{ steps.build.outputs.tag }} value: ${{ jobs.build.outputs.tag }}
image: image:
description: 'Built image name' description: 'Built image name'
value: ${{ steps.build.outputs.image }} value: ${{ jobs.build.outputs.image }}
sha: sha:
description: 'Git SHA used for the build' description: 'Git SHA used for the build'
value: ${{ steps.build.outputs.sha }} value: ${{ jobs.build.outputs.sha }}
jobs: jobs:
build: build:
name: Build Docker Image name: Build Docker Image
@@ -74,6 +74,10 @@ jobs:
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ inputs.image }}/cache cache-from: type=registry,ref=${{ inputs.image }}/cache
cache-to: type=registry,ref=${{ inputs.image }}/cache,mode=max 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: outputs:
tag: ${{ fromJSON(steps.meta.outputs.json).tags[0] }} tag: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
image: ${{ inputs.image }} image: ${{ inputs.image }}