@@ -92,13 +92,30 @@ jobs:
9292
9393 - name : Checkout PR Branch
9494 if : |
95- github.event_name == 'issue_comment' ||
95+ (github.event_name == 'issue_comment' &&
96+ github.event.issue.pull_request &&
97+ github.event.comment.body == '/deploy-review-app') ||
9698 (steps.get-pr.outputs.has_pr == 'true' && steps.check-app.outputs.app_exists == 'true')
9799 run : git checkout ${{ steps.getRef.outputs.PR_REF }}
98100
101+ - name : Build Docker Image
102+ if : |
103+ (github.event_name == 'issue_comment' &&
104+ github.event.issue.pull_request &&
105+ github.event.comment.body == '/deploy-review-app') ||
106+ (steps.get-pr.outputs.has_pr == 'true' && steps.check-app.outputs.app_exists == 'true')
107+ uses : ./.github/actions/build-docker-image
108+ with :
109+ app_name : ${{ env.APP_NAME }}
110+ org : ${{ env.CPLN_ORG }}
111+ commit : ${{ steps.getRef.outputs.PR_SHA }}
112+ PR_NUMBER : ${{ env.PR_NUMBER }}
113+
99114 - name : Deploy to Control Plane
100115 if : |
101- github.event_name == 'issue_comment' ||
116+ (github.event_name == 'issue_comment' &&
117+ github.event.issue.pull_request &&
118+ github.event.comment.body == '/deploy-review-app') ||
102119 (steps.get-pr.outputs.has_pr == 'true' && steps.check-app.outputs.app_exists == 'true')
103120 uses : ./.github/actions/deploy-to-control-plane
104121 with :
0 commit comments