-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (56 loc) · 1.49 KB
/
build.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# SPDX-FileCopyrightText: 2024 grow platform GmbH
#
# SPDX-License-Identifier: MIT
name: Build
on:
workflow_dispatch:
push:
branches:
- "main"
- "build-core-image"
pull_request:
branches:
- "main"
permissions:
contents: read
packages: write
id-token: write
attestations: write
pull-requests: write
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build-onyx:
uses: ./.github/workflows/build-onyx.yml
secrets: inherit
build-typescript-apps:
uses: ./.github/workflows/build-typescript-apps.yml
secrets: inherit
build-python-apps:
uses: ./.github/workflows/build-python-apps.yml
secrets: inherit
build-ui:
uses: ./.github/workflows/build-ui.yml
secrets: inherit
build-backend:
uses: ./.github/workflows/build-backend.yml
secrets: inherit
build-backend-docker-image:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs:
- build-backend
uses: ./.github/workflows/build-backend-docker-image.yml
build-ui-docker-image:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs:
- build-ui
uses: ./.github/workflows/build-ui-docker-image.yml
build-core-docker-image:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs:
- build-onyx
- build-typescript-apps
- build-python-apps
uses: ./.github/workflows/build-core-docker-image.yml
secrets: inherit