Skip to content

Commit e30e09b

Browse files
committed
readme: outputs docs
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 8b98130 commit e30e09b

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

README.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ ___
1212
* [Build reusable workflow](#build-reusable-workflow)
1313
* [Inputs](#inputs)
1414
* [Secrets](#secrets)
15+
* [Outputs](#outputs)
1516
* [Bake reusable workflow](#bake-reusable-workflow)
16-
* [Inputs](#inputs)
17-
* [Secrets](#secrets)
17+
* [Inputs](#inputs-1)
18+
* [Secrets](#secrets-1)
19+
* [Outputs](#outputs-1)
1820

1921
## Overview
2022

@@ -252,6 +254,22 @@ on:
252254
| `registry-auths` | | Raw authentication to registries, defined as YAML objects (for `image` output) |
253255
| `github-token` | `${{ github.token }}` | GitHub Token used to authenticate against the repository for Git context |
254256

257+
#### Outputs
258+
259+
These outputs are available as `needs.<job_id>.outputs.*` and can be passed
260+
directly to the [`verify.yml` reusable workflow](.github/workflows/verify.yml)
261+
with `builder-outputs: ${{ toJSON(needs.<job_id>.outputs) }}`.
262+
263+
| Name | Type | Description |
264+
|--------------------------|--------|------------------------------------------------------------------------------|
265+
| `meta-json` | JSON | Metadata JSON output from `docker/metadata-action` (for `image` output) |
266+
| `cosign-version` | String | Cosign version used for verification |
267+
| `cosign-verify-commands` | List | Newline-delimited `cosign verify` commands generated when signing is enabled |
268+
| `artifact-name` | String | Name of the uploaded merged artifact (for `local` output) |
269+
| `digest` | String | Digest of the image pushed or artifact uploaded |
270+
| `output-type` | String | Output type selected for the workflow (`image` or `local`) |
271+
| `signed` | Bool | Whether attestation manifests or local artifacts were signed |
272+
255273
### Bake reusable workflow
256274

257275
The [`bake.yml` reusable workflow](.github/workflows/bake.yml) lets you build
@@ -357,3 +375,19 @@ on:
357375
|------------------|-----------------------|--------------------------------------------------------------------------------|
358376
| `registry-auths` | | Raw authentication to registries, defined as YAML objects (for `image` output) |
359377
| `github-token` | `${{ github.token }}` | GitHub Token used to authenticate against the repository for Git context |
378+
379+
#### Outputs
380+
381+
These outputs are available as `needs.<job_id>.outputs.*` and can be passed
382+
directly to the [`verify.yml` reusable workflow](.github/workflows/verify.yml)
383+
with `builder-outputs: ${{ toJSON(needs.<job_id>.outputs) }}`.
384+
385+
| Name | Type | Description |
386+
|--------------------------|--------|------------------------------------------------------------------------------|
387+
| `meta-json` | JSON | Metadata JSON output from `docker/metadata-action` (for `image` output) |
388+
| `cosign-version` | String | Cosign version used for verification |
389+
| `cosign-verify-commands` | List | Newline-delimited `cosign verify` commands generated when signing is enabled |
390+
| `artifact-name` | String | Name of the uploaded merged artifact (for `local` output) |
391+
| `digest` | String | Digest of the image pushed or artifact uploaded |
392+
| `output-type` | String | Output type selected for the workflow (`image` or `local`) |
393+
| `signed` | Bool | Whether attestation manifests or local artifacts were signed |

0 commit comments

Comments
 (0)