There was an error while loading. Please reload this page.
1 parent 7fab2a5 commit 4237c04Copy full SHA for 4237c04
1 file changed
.github/workflows/ci-cd.yml
@@ -74,6 +74,9 @@ jobs:
74
context: .
75
push: true
76
tags: ${{ steps.meta.outputs.tags }}
77
+ # Added Docker caching for faster builds
78
+ cache-from: type=gha
79
+ cache-to: type=gha,mode=max
80
81
- name: Deployment notification
82
run: |
@@ -85,6 +88,8 @@ jobs:
85
88
} >> "$GITHUB_STEP_SUMMARY"
86
89
87
90
- name: Slack notification
91
+ # Added if: always() to ensure notifications are sent on failure as well
92
+ if: always()
93
env:
94
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
95
STATUS: ${{ job.status }}
@@ -98,4 +103,4 @@ jobs:
98
103
fi
99
104
curl -sS -X POST -H "Content-Type: application/json" \
100
105
--data "{\"text\":\":rocket: CI/CD ${STATUS}\nRepo: ${{ github.repository }}\nImage: ${IMAGE}\nCommit: ${SHA}\nRun: ${RUN_URL}\"}" \
101
- "$SLACK_WEBHOOK_URL"
106
+ "$SLACK_WEBHOOK_URL"
0 commit comments