From aff132b15f7cc493f7c0395e041b658cfde55722 Mon Sep 17 00:00:00 2001 From: ZePan110 Date: Thu, 13 Feb 2025 17:29:36 +0800 Subject: [PATCH 1/3] Fix Build latest images on push event workflow Signed-off-by: ZePan110 --- .github/workflows/push-image-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push-image-build.yml b/.github/workflows/push-image-build.yml index 67389a3cd4..1a7b2706d7 100644 --- a/.github/workflows/push-image-build.yml +++ b/.github/workflows/push-image-build.yml @@ -62,7 +62,7 @@ jobs: image-build: needs: get-build-matrix - if: ${{ fromJSON(needs.get-build-matrix.outputs.services).length != 0 }} + if: needs.get-build-matrix.outputs.services != 'null' strategy: matrix: service: ${{ fromJSON(needs.get-build-matrix.outputs.services) }} From da9d7a2806f9917108214eb7e7cf56e3b2113306 Mon Sep 17 00:00:00 2001 From: ZePan110 Date: Thu, 13 Feb 2025 17:31:47 +0800 Subject: [PATCH 2/3] test Signed-off-by: ZePan110 --- .github/workflows/docker/compose/animation-compose.yaml | 1 + .github/workflows/push-image-build.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker/compose/animation-compose.yaml b/.github/workflows/docker/compose/animation-compose.yaml index ab9149b79b..3caa333824 100644 --- a/.github/workflows/docker/compose/animation-compose.yaml +++ b/.github/workflows/docker/compose/animation-compose.yaml @@ -7,3 +7,4 @@ services: build: dockerfile: comps/animation/src/Dockerfile image: ${REGISTRY:-opea}/animation:${TAG:-latest} +#test diff --git a/.github/workflows/push-image-build.yml b/.github/workflows/push-image-build.yml index 1a7b2706d7..8a2babd899 100644 --- a/.github/workflows/push-image-build.yml +++ b/.github/workflows/push-image-build.yml @@ -4,7 +4,7 @@ name: Build latest images on push event on: push: - branches: ["main"] + branches: ["main","Fix-CICD"] paths: - 'comps/**' - 'src/**' From 26dadf0eae494514dba9dd577390be8049952018 Mon Sep 17 00:00:00 2001 From: ZePan110 Date: Thu, 13 Feb 2025 18:18:39 +0800 Subject: [PATCH 3/3] Revert "test" This reverts commit da9d7a2806f9917108214eb7e7cf56e3b2113306. --- .github/workflows/docker/compose/animation-compose.yaml | 1 - .github/workflows/push-image-build.yml | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker/compose/animation-compose.yaml b/.github/workflows/docker/compose/animation-compose.yaml index 3caa333824..ab9149b79b 100644 --- a/.github/workflows/docker/compose/animation-compose.yaml +++ b/.github/workflows/docker/compose/animation-compose.yaml @@ -7,4 +7,3 @@ services: build: dockerfile: comps/animation/src/Dockerfile image: ${REGISTRY:-opea}/animation:${TAG:-latest} -#test diff --git a/.github/workflows/push-image-build.yml b/.github/workflows/push-image-build.yml index 8a2babd899..51a2a88b75 100644 --- a/.github/workflows/push-image-build.yml +++ b/.github/workflows/push-image-build.yml @@ -4,7 +4,7 @@ name: Build latest images on push event on: push: - branches: ["main","Fix-CICD"] + branches: ["main"] paths: - 'comps/**' - 'src/**' @@ -62,7 +62,7 @@ jobs: image-build: needs: get-build-matrix - if: needs.get-build-matrix.outputs.services != 'null' + if: needs.get-build-matrix.outputs.services != '[]' strategy: matrix: service: ${{ fromJSON(needs.get-build-matrix.outputs.services) }}