Skip to content

Commit 9c91d29

Browse files
authored
only mark pipeline as succeeded when image build jobs pass (#7327)
1 parent 278f841 commit 9c91d29

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,9 @@ jobs:
690690
smokeOSSResult="${{ needs.smoke-tests-oss.result }}"
691691
smokePlusResult="${{ needs.smoke-tests-plus.result }}"
692692
smokeNAPResult="${{ needs.smoke-tests-nap.result }}"
693+
buildOSSResult="${{ needs.build-docker.result }}"
694+
buildPlusResult="${{ needs.build-docker-plus.result }}"
695+
buildNAPResult="${{ needs.build-docker-nap.result }}"
693696
if [[ $tagResult != "success" && $tagResult != "skipped" ]]; then
694697
exit 1
695698
fi
@@ -702,6 +705,15 @@ jobs:
702705
if [[ $smokeNAPResult != "success" && $smokeNAPResult != "skipped" ]]; then
703706
exit 1
704707
fi
708+
if [[ $buildOSSResult != "success" && $buildOSSResult != "skipped" ]]; then
709+
exit 1
710+
fi
711+
if [[ $buildPlusResult != "success" && $buildPlusResult != "skipped" ]]; then
712+
exit 1
713+
fi
714+
if [[ $buildNAPResult != "success" && $buildNAPResult != "skipped" ]]; then
715+
exit 1
716+
fi
705717
706718
trigger-image-promotion:
707719
name: Promote images on Force Run

0 commit comments

Comments
 (0)