devops: use repository dispatch to trigger builds for all applications (#5104)

This commit is contained in:
Andrey Lushnikov 2021-01-22 01:26:31 -08:00 committed by GitHub
parent 86775f06d9
commit a370443a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 97 additions and 1 deletions

View File

@ -7,7 +7,7 @@ on:
- release-* - release-*
paths: paths:
- browser_patches/chromium/BUILD_NUMBER - browser_patches/chromium/BUILD_NUMBER
- .github/workflows/trigger_chromium_build.yml - .github/workflows/trigger_build_chromium.yml
jobs: jobs:
trigger: trigger:

View File

@ -0,0 +1,24 @@
name: "FFMPEG Builder"
on:
push:
branches:
- master
- release-*
paths:
- browser_patches/ffmpeg/BUILD_NUMBER
- .github/workflows/trigger_build_ffmpeg.yml
jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
steps:
- run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GH_TOKEN}" \
--data '{"event_type": "build_ffmpeg"}' \
https://api.github.com/repos/microsoft/playwright-internal/dispatches
env:
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}

View File

@ -0,0 +1,24 @@
name: "Firefox Builder"
on:
push:
branches:
- master
- release-*
paths:
- browser_patches/firefox/BUILD_NUMBER
- .github/workflows/trigger_build_firefox.yml
jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
steps:
- run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GH_TOKEN}" \
--data '{"event_type": "build_firefox"}' \
https://api.github.com/repos/microsoft/playwright-internal/dispatches
env:
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}

View File

@ -0,0 +1,24 @@
name: "WebKit Builder"
on:
push:
branches:
- master
- release-*
paths:
- browser_patches/webkit/BUILD_NUMBER
- .github/workflows/trigger_build_webkit.yml
jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
steps:
- run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GH_TOKEN}" \
--data '{"event_type": "build_webkit"}' \
https://api.github.com/repos/microsoft/playwright-internal/dispatches
env:
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}

View File

@ -0,0 +1,24 @@
name: "WinLDD Builder"
on:
push:
branches:
- master
- release-*
paths:
- browser_patches/winldd/BUILD_NUMBER
- .github/workflows/trigger_build_winldd.yml
jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
steps:
- run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GH_TOKEN}" \
--data '{"event_type": "build_winldd"}' \
https://api.github.com/repos/microsoft/playwright-internal/dispatches
env:
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}