File tree 2 files changed +40
-0
lines changed
2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 19
19
run : |
20
20
GIT_SHA=$(git rev-parse HEAD)
21
21
packer build -var "git-head-version=${GIT_SHA}" -var-file="development-arm.vars.pkr.hcl" -var-file="common.vars.pkr.hcl" amazon-arm64.pkr.hcl
22
+
23
+ - name : Slack Notification
24
+ if : ${{ failure() }}
25
+ uses : rtCamp/action-slack-notify@v2
26
+ env :
27
+ SLACK_WEBHOOK : ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
28
+ SLACK_USERNAME : ' gha-failures-notifier'
29
+ SLACK_COLOR : ' danger'
30
+ SLACK_MESSAGE : ' Building Postgres AMI failed'
31
+ SLACK_FOOTER : ' '
Original file line number Diff line number Diff line change 60
60
cache-from : type=gha
61
61
cache-to : type=gha,mode=max
62
62
63
+ - name : Slack Notification
64
+ if : ${{ failure() }}
65
+ uses : rtCamp/action-slack-notify@v2
66
+ env :
67
+ SLACK_WEBHOOK : ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
68
+ SLACK_USERNAME : ' gha-failures-notifier'
69
+ SLACK_COLOR : ' danger'
70
+ SLACK_MESSAGE : ' Building Postgres x86 image failed'
71
+ SLACK_FOOTER : ' '
72
+
63
73
docker_arm_release :
64
74
needs : settings
65
75
runs-on : [arm-runner]
@@ -100,6 +110,16 @@ jobs:
100
110
platforms : linux/${{ env.arch }}
101
111
no-cache : true
102
112
113
+ - name : Slack Notification
114
+ if : ${{ failure() }}
115
+ uses : rtCamp/action-slack-notify@v2
116
+ env :
117
+ SLACK_WEBHOOK : ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
118
+ SLACK_USERNAME : ' gha-failures-notifier'
119
+ SLACK_COLOR : ' danger'
120
+ SLACK_MESSAGE : ' Building Postgres arm image failed'
121
+ SLACK_FOOTER : ' '
122
+
103
123
merge_manifest :
104
124
needs : [settings, docker_x86_release, docker_arm_release]
105
125
runs-on : ubuntu-latest
@@ -141,3 +161,13 @@ jobs:
141
161
dst : |
142
162
public.ecr.aws/supabase/postgres:${{ needs.settings.outputs.docker_version }}
143
163
ghcr.io/supabase/postgres:${{ needs.settings.outputs.docker_version }}
164
+
165
+ - name : Slack Notification
166
+ if : ${{ failure() }}
167
+ uses : rtCamp/action-slack-notify@v2
168
+ env :
169
+ SLACK_WEBHOOK : ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
170
+ SLACK_USERNAME : ' gha-failures-notifier'
171
+ SLACK_COLOR : ' danger'
172
+ SLACK_MESSAGE : ' Building Postgres image failed'
173
+ SLACK_FOOTER : ' '
You can’t perform that action at this time.
0 commit comments