ci: trigger schutzbot from github action
Previously, we had a webhook relay. It received a notification from Github and sent it to AWS SQS. Now, the webhook is dead. The new method (already used in osbuild-composer and image-builder) is to send the notification directly from a github action to AWS SQS.
This commit is contained in:
parent
14fc39e416
commit
dd9099c53a
2 changed files with 50 additions and 0 deletions
18
.github/workflows/tests.yml
vendored
18
.github/workflows/tests.yml
vendored
|
|
@ -107,3 +107,21 @@ jobs:
|
|||
with:
|
||||
ignore_words_list: msdos
|
||||
skip: ./.git,coverity,rpmbuild,samples
|
||||
|
||||
schutzbot:
|
||||
name: "🍌 Trigger Schutzbot"
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docker.io/library/python:3.7
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Trigger Schutzbot
|
||||
env:
|
||||
EVENT_NAME: ${{ github.event_name }}
|
||||
WEBHOOK_PAYLOAD: ${{ toJSON(github.event) }}
|
||||
SQS_REGION: us-east-1
|
||||
SQS_QUEUE_URL: "https://sqs.us-east-1.amazonaws.com/933752197999/schutzbot_webhook_sqs-staging"
|
||||
run: |
|
||||
#!/bin/bash
|
||||
pip3 install boto3 botocore
|
||||
schutzbot/send_webhook.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue