Skip to content

Commit ac9d84c

Browse files
authored
Merge pull request #5 from ecmwf-projects/tag-and-images
Build All Images Workflow
2 parents 28d3e10 + d336bd6 commit ac9d84c

10 files changed

+192
-0
lines changed

.github/workflows/build-broker-service.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ on:
77
description: 'Image tag'
88
required: true
99
default: 'latest'
10+
workflow_run:
11+
workflows:
12+
- ecmwf-projects/cads-build-farm/build-images.yml
13+
types: [requested]
14+
1015

1116
jobs:
17+
1218
build-docker-image:
1319
runs-on: ubuntu-latest
1420
steps:

.github/workflows/build-cache-cleaner-service.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'Image tag'
88
required: true
99
default: 'latest'
10+
workflow_run:
11+
workflows:
12+
- ecmwf-projects/cads-build-farm/build-images.yml
13+
types: [requested]
1014

1115
jobs:
1216

.github/workflows/build-catalogue-api-service.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'Image tag'
88
required: true
99
default: 'latest'
10+
workflow_run:
11+
workflows:
12+
- ecmwf-projects/cads-build-farm/build-images.yml
13+
types: [requested]
1014

1115
jobs:
1216
build-docker-image:

.github/workflows/build-catalogue-manager.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'Image tag'
88
required: true
99
default: 'latest'
10+
workflow_run:
11+
workflows:
12+
- ecmwf-projects/cads-build-farm/build-images.yml
13+
types: [requested]
1014

1115
jobs:
1216
build-docker-image:

.github/workflows/build-extended-profiles.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'Image tag'
88
required: true
99
default: 'latest'
10+
workflow_run:
11+
workflows:
12+
- ecmwf-projects/cads-build-farm/build-images.yml
13+
types: [requested]
1014

1115
jobs:
1216

.github/workflows/build-images.yml

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
name: Build all images
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
image_tag:
7+
description: 'Release tag'
8+
required: true
9+
default: 'test'
10+
jobs:
11+
12+
build_broker_service:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Build Broker Service image
16+
uses: convictional/[email protected]
17+
with:
18+
owner: ecmwf-projects
19+
repo: cads-build-farm
20+
github_token: ${{ secrets.CADS_PAT }}
21+
workflow_file_name: build-broker-service.yml
22+
ref: main
23+
client_payload: '{ "image_tag": "${{ github.event.inputs.image_tag }}" }'
24+
propagate_failure: false
25+
trigger_workflow: true
26+
wait_workflow: true
27+
28+
build_cache_cleaner_service:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Build Cacholote image
32+
uses: convictional/[email protected]
33+
with:
34+
owner: ecmwf-projects
35+
repo: cads-build-farm
36+
github_token: ${{ secrets.CADS_PAT }}
37+
workflow_file_name: build-cache-cleaner-service.yml
38+
ref: main
39+
client_payload: '{ "image_tag": "${{ github.event.inputs.image_tag }}" }'
40+
propagate_failure: false
41+
trigger_workflow: true
42+
wait_workflow: true
43+
44+
build_catalogue_api_service:
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Build Catalogue API Service image
48+
uses: convictional/[email protected]
49+
with:
50+
owner: ecmwf-projects
51+
repo: cads-build-farm
52+
github_token: ${{ secrets.CADS_PAT }}
53+
workflow_file_name: build-catalogue-api-service.yml
54+
ref: main
55+
client_payload: '{ "image_tag": "${{ github.event.inputs.image_tag }}" }'
56+
propagate_failure: false
57+
trigger_workflow: true
58+
wait_workflow: true
59+
60+
build_catalogue_manager:
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Build Catalogue Manager image
64+
uses: convictional/[email protected]
65+
with:
66+
owner: ecmwf-projects
67+
repo: cads-build-farm
68+
github_token: ${{ secrets.CADS_PAT }}
69+
workflow_file_name: build-catalogue-manager.yml
70+
ref: main
71+
client_payload: '{ "image_tag": "${{ github.event.inputs.image_tag }}" }'
72+
propagate_failure: false
73+
trigger_workflow: true
74+
wait_workflow: true
75+
76+
build_extended_profiles:
77+
runs-on: ubuntu-latest
78+
steps:
79+
- name: Build Extended Profiles image
80+
uses: convictional/[email protected]
81+
with:
82+
owner: ecmwf-projects
83+
repo: cads-build-farm
84+
github_token: ${{ secrets.CADS_PAT }}
85+
workflow_file_name: build-extended-profiles.yml
86+
ref: main
87+
client_payload: '{ "image_tag": "${{ github.event.inputs.image_tag }}" }'
88+
propagate_failure: false
89+
trigger_workflow: true
90+
wait_workflow: true
91+
92+
build_processing_api_service:
93+
runs-on: ubuntu-latest
94+
steps:
95+
- name: Build Processing API Service image
96+
uses: convictional/[email protected]
97+
with:
98+
owner: ecmwf-projects
99+
repo: cads-build-farm
100+
github_token: ${{ secrets.CADS_PAT }}
101+
workflow_file_name: build-processing-api-service.yml
102+
ref: main
103+
client_payload: '{ "image_tag": "${{ github.event.inputs.image_tag }}" }'
104+
propagate_failure: false
105+
trigger_workflow: true
106+
wait_workflow: true
107+
108+
build_proxy:
109+
runs-on: ubuntu-latest
110+
steps:
111+
- name: Build proxy image
112+
uses: convictional/[email protected]
113+
with:
114+
owner: ecmwf-projects
115+
repo: cads-build-farm
116+
github_token: ${{ secrets.CADS_PAT }}
117+
workflow_file_name: build-proxy.yml
118+
ref: main
119+
client_payload: '{ "image_tag": "${{ github.event.inputs.image_tag }}" }'
120+
propagate_failure: false
121+
trigger_workflow: true
122+
wait_workflow: true
123+
124+
build_webportal:
125+
runs-on: ubuntu-latest
126+
steps:
127+
- name: Build Webportal image
128+
uses: convictional/[email protected]
129+
with:
130+
owner: ecmwf-projects
131+
repo: cads-build-farm
132+
github_token: ${{ secrets.CADS_PAT }}
133+
workflow_file_name: build-webportal.yml
134+
ref: main
135+
client_payload: '{ "image_tag": "${{ github.event.inputs.image_tag }}" }'
136+
propagate_failure: false
137+
trigger_workflow: true
138+
wait_workflow: true
139+
140+
build_worker:
141+
runs-on: ubuntu-latest
142+
steps:
143+
- name: Build Worker image
144+
uses: convictional/[email protected]
145+
with:
146+
owner: ecmwf-projects
147+
repo: cads-build-farm
148+
github_token: ${{ secrets.CADS_PAT }}
149+
workflow_file_name: build-worker.yml
150+
ref: main
151+
client_payload: '{ "image_tag": "${{ github.event.inputs.image_tag }}" }'
152+
propagate_failure: false
153+
trigger_workflow: true
154+
wait_workflow: true

.github/workflows/build-processing-api-service.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'Image tag'
88
required: true
99
default: 'latest'
10+
workflow_run:
11+
workflows:
12+
- ecmwf-projects/cads-build-farm/build-images.yml
13+
types: [requested]
1014

1115
jobs:
1216
build-docker-image:

.github/workflows/build-proxy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'Image tag'
88
required: true
99
default: 'latest'
10+
workflow_run:
11+
workflows:
12+
- ecmwf-projects/cads-build-farm/build-images.yml
13+
types: [requested]
1014

1115
jobs:
1216
build-docker-image:

.github/workflows/build-webportal.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'Image tag'
88
required: true
99
default: 'latest'
10+
workflow_run:
11+
workflows:
12+
- ecmwf-projects/cads-build-farm/build-images.yml
13+
types: [requested]
1014

1115
jobs:
1216
build-docker-image:

.github/workflows/build-worker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'Image tag'
88
required: true
99
default: 'latest'
10+
workflow_run:
11+
workflows:
12+
- ecmwf-projects/cads-build-farm/build-images.yml
13+
types: [requested]
1014

1115
jobs:
1216
build-docker-image:

0 commit comments

Comments
 (0)