File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 required : false
2828 rh_pass :
2929 required : false
30+ outputs :
31+ image :
32+ description : ' Release image with the run number tag'
33+ value : ${{ jobs.release.outputs.image }}
3034
3135env :
3236 REPO_SLUG : dockereng/packaging
@@ -220,6 +224,8 @@ jobs:
220224 - prepare
221225 - build
222226 - verify
227+ outputs :
228+ image : ${{ steps.image.outputs.image }}
223229 env :
224230 GO_VERSION : ${{ needs.prepare.outputs.go-version }}
225231 INPUT_INCLUDES : ${{ needs.prepare.outputs.includes }}
@@ -312,6 +318,12 @@ jobs:
312318 com.github.docker.packaging.run_id=${{ github.run_id }}
313319 com.github.docker.packaging.run_number=${{ github.run_number }}
314320 bake-target : meta-helper
321+ -
322+ name : Set image output
323+ id : image
324+ run : |
325+ image=$(jq -r --arg suffix "-${GITHUB_RUN_NUMBER}" '.tags[] | select(endswith($suffix))' <<< "$DOCKER_METADATA_OUTPUT_JSON")
326+ echo "image=${image}" >> "$GITHUB_OUTPUT"
315327 -
316328 name : Login to Docker Hub
317329 if : ${{ inputs.release || github.event_name == 'schedule' }}
Original file line number Diff line number Diff line change @@ -115,3 +115,32 @@ jobs:
115115 DOCKER_VERSION=${{ inputs.version }}
116116 dockerhub_username : dockereng
117117 dockerhub_oidc_connectionid : ${{ vars.DOCKERHUB_OIDC_CONNECTIONID }}
118+
119+ summary :
120+ if : ${{ always() && needs.engine.result == 'success' && needs.cli.result == 'success' && (needs.docker.result == 'success' || needs.docker.result == 'skipped') }}
121+ needs :
122+ - engine
123+ - cli
124+ - docker
125+ runs-on : ubuntu-24.04
126+ steps :
127+ -
128+ name : Summarize images
129+ env :
130+ ENGINE_IMAGE : ${{ needs.engine.outputs.image }}
131+ CLI_IMAGE : ${{ needs.cli.outputs.image }}
132+ DOCKER_IMAGE : ${{ needs.docker.outputs.image }}
133+ run : |
134+ images=("$ENGINE_IMAGE" "$CLI_IMAGE")
135+ # The docker job is skipped when only building for selected distros (inputs.distros).
136+ if [[ -n "$DOCKER_IMAGE" ]]; then
137+ images+=("$DOCKER_IMAGE")
138+ fi
139+ image_list=$(IFS=,; printf '%s' "${images[*]}")
140+ {
141+ echo '## Images for release-repo'
142+ echo
143+ echo '```text'
144+ echo "$image_list"
145+ echo '```'
146+ } >> "$GITHUB_STEP_SUMMARY"
You can’t perform that action at this time.
0 commit comments