forked from flagos-ai/FlagCX
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (83 loc) · 3.66 KB
/
Copy pathtrigger.yml
File metadata and controls
89 lines (83 loc) · 3.66 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Docker Image Build Orchestrator
on:
schedule:
- cron: '0 2 * * *'
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
push_images:
description: 'push image or not'
type: boolean
default: false
jobs:
build-matrix:
strategy:
fail-fast: false
matrix:
include:
- job_name: buildcx-nvidia-image
push: ${{ github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' && inputs.push_images }}
containerfile: 'containerfile'
image_name: 'flagcx-nvidia'
tag: 'latest'
runson: 'h20'
no-cache: ${{ github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' && inputs.push_images }}
build-args: |
BASE_IMAGE=harbor.baai.ac.cn/flagbase/flagbase-nvidia
BASE_IMAGE_VERSION=latest
VENDOR=USE_NVIDIA
# use h20 instance just for build image.
- job_name: buildcx-metax-image
push: ${{ github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' && inputs.push_images }}
containerfile: 'containerfile'
image_name: 'flagcx-metax'
tag: 'latest'
runson: 'h20'
no-cache: ${{ github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' && inputs.push_images }}
build-args: |
BASE_IMAGE=harbor.baai.ac.cn/flagbase/flagbase-metax
BASE_IMAGE_VERSION=latest
VENDOR=USE_METAX
# use h20 instance just for build image.
- job_name: buildcx-ascend-image
push: ${{ github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' && inputs.push_images }}
containerfile: 'containerfile'
image_name: 'flagcx-ascend'
tag: 'latest'
runson: 'h20'
no-cache: ${{ github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' && inputs.push_images }}
build-args: |
BASE_IMAGE=harbor.baai.ac.cn/flagbase/flagbase-ascend
BASE_IMAGE_VERSION=latest
VENDOR=USE_ASCEND
# use h20 instance just for build image.
- job_name: buildcx-tsingmicro-image
push: ${{ github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' && inputs.push_images }}
containerfile: 'containerfile'
image_name: 'flagcx-tsingmicro'
tag: 'latest'
runson: 'h20'
no-cache: ${{ github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' && inputs.push_images }}
build-args: |
BASE_IMAGE=harbor.baai.ac.cn/flagbase/flagbase-tsingmicro
BASE_IMAGE_VERSION=latest
VENDOR=USE_TSM
uses: flagos-ai/build-infra/.github/workflows/imagebuild.yml@main
with:
push: ${{ matrix.push }}
containerfile: ${{ matrix.containerfile }}
image_name: ${{ matrix.image_name }}
tag: ${{ matrix.tag }}
runson: ${{ matrix.runson }}
build-args: ${{ matrix.build-args }}
image_prefix: 'flagcx'
no-cache: ${{ matrix.no-cache }}
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
CONTAINER_REGISTRY: ${{ secrets.CONTAINER_REGISTRY }}
RUNNER_SSH_KEY: ${{ secrets.RUNNER_SSH_KEY }}