Skip to content

Commit ed6ae08

Browse files
ci: build-push-images.yaml add outputs (#39)
1 parent 5c64f9e commit ed6ae08

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build-push-images.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ on:
5151
registry_password:
5252
description: "Registry password"
5353
required: true
54+
outputs:
55+
tag:
56+
description: "The tag of the image pushed to the registry"
57+
value: ${{ jobs.prepare.outputs.tag }}
58+
digest:
59+
description: "The digest of the image pushed to the registry"
60+
value: ${{ jobs.manifest.outputs.digest }}
5461

5562
jobs:
5663
prepare:
@@ -165,6 +172,8 @@ jobs:
165172
manifest:
166173
needs: [ prepare, build ]
167174
runs-on: ubuntu-latest
175+
outputs:
176+
digest: ${{ steps.push.outputs.digest }}
168177
env:
169178
tag: ${{ needs.prepare.outputs.tag }}
170179
steps:
@@ -193,4 +202,4 @@ jobs:
193202
tags: ${{ env.tag }}
194203
username: ${{ secrets.registry_username }}
195204
password: ${{ secrets.registry_password }}
196-
registry: ${{ inputs.registry }}
205+
registry: ${{ inputs.registry }}

0 commit comments

Comments
 (0)