Skip to content

Commit ad35eac

Browse files
committed
ci: add failure notifications for v3 build
1 parent da69a37 commit ad35eac

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/qemu-image-build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,16 @@ jobs:
144144
docker tag "postgres:$IMAGE_TAG" "$REGISTRY/$REPOSITORY:$IMAGE_TAG"
145145
docker push "$REGISTRY/$REPOSITORY:$IMAGE_TAG"
146146
147+
- name: Slack Notification on Failure
148+
if: ${{ failure() }}
149+
uses: rtCamp/action-slack-notify@v2
150+
env:
151+
SLACK_WEBHOOK: ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
152+
SLACK_USERNAME: 'gha-failures-notifier'
153+
SLACK_COLOR: 'danger'
154+
SLACK_MESSAGE: 'Building Postgres QEMU artifact failed'
155+
SLACK_FOOTER: ''
156+
b
147157
- name: Cleanup resources after build
148158
if: ${{ always() }}
149159
run: |

0 commit comments

Comments
 (0)