Skip to content

Commit e25c140

Browse files
committed
add output
1 parent c336d22 commit e25c140

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/actions/build-docker-image/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,15 @@ runs:
2525
echo "🏗️ Building Docker image for PR #${PR_NUMBER} (commit ${{ inputs.commit }})..."
2626
2727
if cpflow build-image -a "${{ inputs.app_name }}" --commit="${{ inputs.commit }}" --org="${{ inputs.org }}"; then
28+
image_tag="${{ inputs.org }}/${{ inputs.app_name }}:${{ inputs.commit }}"
29+
echo "image_tag=${image_tag}" >> $GITHUB_OUTPUT
2830
echo "✅ Docker image build successful for PR #${PR_NUMBER} (commit ${{ inputs.commit }})"
2931
else
3032
echo "❌ Docker image build failed for PR #${PR_NUMBER} (commit ${{ inputs.commit }})"
3133
exit 1
3234
fi
35+
36+
outputs:
37+
image_tag:
38+
description: 'The tag of the built Docker image'
39+
value: ${{ steps.build.outputs.image_tag }}

0 commit comments

Comments
 (0)