jobs instead of steps in build output
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user