This commit is contained in:
@@ -33,3 +33,22 @@ jobs:
|
|||||||
|
|
||||||
- name: Clean up old images
|
- name: Clean up old images
|
||||||
run: docker image prune -f
|
run: docker image prune -f
|
||||||
|
|
||||||
|
# Email Notification (on success)
|
||||||
|
- name: Send success email
|
||||||
|
if: success()
|
||||||
|
uses: dawidd6/action-send-mail@v3
|
||||||
|
with:
|
||||||
|
server_address: smtp.gmail.com
|
||||||
|
server_port: 587
|
||||||
|
username: ${{ secrets.EMAIL_USERNAME }}
|
||||||
|
password: ${{ secrets.EMAIL_PASSWORD }}
|
||||||
|
subject: '✅ Deployment Successful - rc-portfolio'
|
||||||
|
to: raghu6004@gmail.com
|
||||||
|
from: GitHub Actions
|
||||||
|
body: |
|
||||||
|
Deployment completed successfully!
|
||||||
|
Repository: ${{ github.repository }}
|
||||||
|
Branch: ${{ github.ref }}
|
||||||
|
Commit: ${{ github.sha }}
|
||||||
|
Workflow: ${{ github.workflow }}
|
||||||
|
|||||||
Reference in New Issue
Block a user