Skip to content

Commit dfdf138

Browse files
feat: add image digest as output for container-build-push
1 parent a8e7f1d commit dfdf138

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/container-build-push.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,18 @@ on:
3737
type=ref,event=branch
3838
type=ref,event=tag
3939
type=raw,value=latest,enable={{is_default_branch}}
40+
outputs:
41+
image_digest:
42+
description: "Image digest"
43+
value: ${{ jobs.container-image-release.outputs.output_digest }}
4044

4145
jobs:
4246
container-image-release:
4347
name: Make container image release
4448
runs-on: ${{ fromJson(inputs.runners) }}
4549
timeout-minutes: 15
50+
outputs:
51+
output_digest: ${{ steps.build_and_push.outputs.digest }}
4652

4753
steps:
4854
- name: Check out repo
@@ -68,6 +74,7 @@ jobs:
6874
password: ${{ secrets.GITHUB_TOKEN }}
6975

7076
- name: Build and push
77+
id: build_and_push
7178
uses: docker/build-push-action@v6
7279
with:
7380
context: ${{ inputs.context }}

0 commit comments

Comments
 (0)