-
Notifications
You must be signed in to change notification settings - Fork 49
55 lines (54 loc) · 1.58 KB
/
autobuild-apps.yml
File metadata and controls
55 lines (54 loc) · 1.58 KB
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
name: Auto build APP image
on:
workflow_call:
inputs:
app:
required: true
type: string
version:
required: true
type: string
jobs:
build_apps:
if: (inputs.app != 'sealos-patch') || (inputs.version != 'v5.0.1-beta1')
name: Auto build app image
runs-on: ubuntu-latest
strategy:
matrix:
arch: [ amd64,arm64 ]
permissions: read-all
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download buildah and sealos
run: .github/scripts/download.sh
- name: Build Image
env:
registry: ${{ vars.D_D_REGISTRY_NAME }}
username: ${{ vars.D_C_REGISTRY_REPOSITORY }}
repo: ${{ vars.D_C_REGISTRY_REPOSITORY }}
password: ${{ secrets.D_C_REGISTRY_TOKEN }}
app: ${{ inputs.app }}
version: ${{ inputs.version }}
arch: ${{ matrix.arch }}
run: .github/scripts/apps.sh
build_manifest:
needs:
- build_apps
name: Auto manifest app image
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download buildah and sealos
run: .github/scripts/download.sh
- name: Manifest Image
env:
registry: ${{ vars.D_D_REGISTRY_NAME }}
username: ${{ vars.D_C_REGISTRY_REPOSITORY }}
repo: ${{ vars.D_C_REGISTRY_REPOSITORY }}
password: ${{ secrets.D_C_REGISTRY_TOKEN }}
app: ${{ inputs.app }}
version: ${{ inputs.version }}
run: .github/scripts/manifest-other.sh