Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 690448f

Browse files
Raymond JangRaymond Jang
authored andcommitted
full workflow
1 parent cdd3fbc commit 690448f

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ name: build-and-deploy
88
permissions:
99
contents: read
1010
jobs:
11+
1112
build-and-test:
1213
permissions:
1314
id-token: write
@@ -25,6 +26,18 @@ jobs:
2526
image-tag: ${{ needs.build-and-test.outputs.image-tag }}
2627
secrets: inherit
2728

28-
# TODO:
29-
# Complete the workflow configuration for each jobs above (CI and CD)
30-
# Create workflow summary
29+
# Create workflow summary
30+
post-deploy:
31+
needs: [build-and-test,deploy-to-prod]
32+
runs-on: ubuntu-latest
33+
permissions:
34+
contents: read
35+
steps:
36+
- name: Post Deploy
37+
env:
38+
APP_URL: ${{ needs.deploy-to-prod.outputs.app_url }}
39+
APP_IP: ${{ needs.deploy-to-prod.outputs.app_ip }}
40+
run: |
41+
echo "## Final Summary" >> $GITHUB_STEP_SUMMARY
42+
echo "APP_URL: http://$APP_URL" >> $GITHUB_STEP_SUMMARY
43+
echo "APP_IP: $APP_IP" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)