-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: chensuyue <[email protected]>
- Loading branch information
Showing
15 changed files
with
114 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Build specific images on manual event | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
nodes: | ||
default: "gaudi,xeon" | ||
description: "Hardware to run test" | ||
required: true | ||
type: string | ||
example: | ||
default: "ChatQnA" | ||
description: 'Build images belong to which example?' | ||
required: true | ||
type: string | ||
services: | ||
default: "chatqna,chatqna-without-rerank" | ||
description: 'Service list to build' | ||
required: true | ||
type: string | ||
tag: | ||
default: "latest" | ||
description: "Tag to apply to images" | ||
required: true | ||
type: string | ||
opea_branch: | ||
default: "main" | ||
description: 'OPEA branch for image build' | ||
required: false | ||
type: string | ||
jobs: | ||
get-test-matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
nodes: ${{ steps.get-matrix.outputs.nodes }} | ||
steps: | ||
- name: Create Matrix | ||
id: get-matrix | ||
run: | | ||
nodes=($(echo ${{ inputs.nodes }} | tr ',' ' ')) | ||
nodes_json=$(printf '%s\n' "${nodes[@]}" | sort -u | jq -R '.' | jq -sc '.') | ||
echo "nodes=$nodes_json" >> $GITHUB_OUTPUT | ||
image-build: | ||
needs: job1 | ||
strategy: | ||
matrix: | ||
node: ${{ fromJson(needs.get-test-matrix.outputs.nodes) }} | ||
fail-fast: false | ||
uses: ./.github/workflows/_example-workflow.yml | ||
with: | ||
node: ${{ matrix.node }} | ||
example: ${{ inputs.example }} | ||
services: ${{ inputs.services }} | ||
secrets: inherit |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.