Skip to content

Commit

Permalink
enable building latest megaservice image on push event in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Yingchun Guo <[email protected]>
  • Loading branch information
daisy-ycguo committed Jun 14, 2024
1 parent 961abb3 commit 3bb4ffc
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/image-build-on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

name: Build latest images on push event

on:
push:
branches: [ 'main' ]
paths:
- "**/docker/*.py"
- "**/docker/Dockerfile"
- "**/docker/ui/**"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-on-push
cancel-in-progress: true

jobs:
job1:
uses: ./.github/workflows/reuse-get-test-matrix.yml

mega-image-build:
needs: job1
strategy:
matrix: ${{ fromJSON(needs.job1.outputs.run_matrix) }}
uses: ./.github/workflows/reuse-image-build.yml
with:
image-tag: latest
mega-service: "${{ matrix.example }}"
2 changes: 1 addition & 1 deletion .github/workflows/manifest-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
job1:
uses: ./.github/workflows/reuse-get-test-matrix.yml
with:
diff-excluded-files: '.github|deprecated|docker|assets'
diff-excluded-files: '.github|deprecated|docker|assets|*.md|*.txt'
xeon-server-lable: 'k8s'
gaudi-server-lable: ""

Expand Down

0 comments on commit 3bb4ffc

Please sign in to comment.