-
Notifications
You must be signed in to change notification settings - Fork 2.2k
79 lines (76 loc) · 1.9 KB
/
frontends.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
69
70
71
72
73
74
75
76
77
78
79
name: Build Frontends Image
on:
create:
tags:
workflow_call:
inputs:
push_image:
description: "Push image"
required: false
type: boolean
default: false
push_image_tag:
description: "Push image tag"
default: "latest"
required: false
type: string
workflow_dispatch:
inputs:
push_image:
description: "Push image"
required: false
type: boolean
default: false
push_image_tag:
description: "Push image tag"
default: "latest"
required: false
type: string
push:
branches: ["main"]
paths:
- "frontend/desktop/**"
- "frontend/providers/**"
- ".github/workflows/frontend.yml"
- "!**/*.md"
- "!**/*.yaml"
pull_request:
branches: ["*"]
paths:
- "frontend/desktop/**"
- "frontend/providers/**"
- ".github/workflows/frontend.yml"
- "!**/*.md"
- "!**/*.yaml"
jobs:
save-sealos:
uses: ./.github/workflows/import-save-sealos.yml
with:
artifact_name: sealos-frontend
image-build:
uses: ./.github/workflows/frontend.yml
needs: save-sealos
secrets: inherit
strategy:
fail-fast: false
matrix:
module:
[
providers/license,
providers/cronjob,
providers/template,
providers/adminer,
providers/applaunchpad,
providers/terminal,
providers/dbprovider,
providers/costcenter,
providers/objectstorage,
providers/kubepanel,
providers/workorder,
providers/devbox,
desktop,
]
with:
module: ${{ matrix.module }}
push_image: ${{ (github.event_name == 'push') || (github.event_name == 'create') || (inputs.push_image == true) }}
push_image_tag: ${{ inputs.push_image_tag }}