-
-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (39 loc) · 2.13 KB
/
trigger-teamcity-builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Trigger TeamCity Builds
on:
workflow_dispatch: # Allows manual triggering
jobs:
trigger-teamcity:
runs-on: ubuntu-latest
steps:
- name: Trigger TeamCity Build for alpha.bloomlibrary.org
uses: fjogeleit/http-request-action@v1
with:
url: "${{ secrets.TEAMCITY_URL }}/app/rest/buildQueue"
method: "POST"
contentType: "application/json"
customHeaders: '{"Authorization": "Bearer ${{ secrets.TEAMCITY_TOKEN_RUN_BUILD }}"}'
data: '{"buildType": {"id": "Bloom_BloomLibraryOrg_BloomLibraryAlphaAlphaBloomlibraryOrgContinuous"}}'
- name: Trigger TeamCity Build for Bloom Reader Alpha
uses: fjogeleit/http-request-action@v1
with:
url: "${{ secrets.TEAMCITY_URL }}/app/rest/buildQueue"
method: "POST"
contentType: "application/json"
customHeaders: '{"Authorization": "Bearer ${{ secrets.TEAMCITY_TOKEN_RUN_BUILD }}"}'
data: '{"buildType": {"id": "Bloom_BloomReader_BloomReaderMasterAlphaContinuousPublish"}}'
- name: Trigger TeamCity Build for Bloom Desktop Alpha
uses: fjogeleit/http-request-action@v1
with:
url: "${{ secrets.TEAMCITY_URL }}/app/rest/buildQueue"
method: "POST"
contentType: "application/json"
customHeaders: '{"Authorization": "Bearer ${{ secrets.TEAMCITY_TOKEN_RUN_BUILD }}"}'
data: '{"buildType": {"id": "bt222"}}'
- name: Trigger TeamCity Build for dev-alpha.bloomlibrary.org
uses: fjogeleit/http-request-action@v1
with:
url: "${{ secrets.TEAMCITY_URL }}/app/rest/buildQueue"
method: "POST"
contentType: "application/json"
customHeaders: '{"Authorization": "Bearer ${{ secrets.TEAMCITY_TOKEN_RUN_BUILD }}"}'
data: '{"buildType": {"id": "Bloom_BloomLibraryOrg_BloomLibrary2masterDevAlphaBloomlibraryOrgContinuous"}}'