Skip to content

Commit a7772d5

Browse files
committed
Skip the stage if the previous stage has failed.
Disable docker build summaries.
1 parent 49b5cf0 commit a7772d5

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/rtpproxy_ci.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,17 @@ jobs:
103103
name: Build Packages
104104
needs: [LoadJobs_conf, FullBuild]
105105
uses: sippy/cimagic/.github/workflows/BuildDPKGs.yml@v2
106-
if: always() && needs.LoadJobs_conf.outputs.do_BuildPackages == 'true'
106+
if: always() && needs.LoadJobs_conf.outputs.do_BuildPackages == 'true' &&
107+
(needs.LoadJobs_conf.outputs.do_FullBuild != 'true' || needs.FullBuild.result == 'success')
107108
with:
108109
apt_depends: pkg-config libssl-dev libbcg729-dev libgsm1-dev libsndfile1-dev libunwind-dev libsrtp2-dev libsystemd-dev systemd procps
109110
test_dpkgs_script: ./scripts/do-dpkg-test.sh
110111

111112
FullBuild:
112113
name: Full Build
113114
needs: [LoadJobs_conf, MinBuild]
114-
if: always() && needs.LoadJobs_conf.outputs.do_FullBuild == 'true'
115+
if: always() && needs.LoadJobs_conf.outputs.do_FullBuild == 'true' &&
116+
(needs.LoadJobs_conf.outputs.do_MinBuild != 'true' || needs.MinBuild.result == 'success')
115117
# The type of runner that the job will run on
116118
runs-on: ubuntu-${{ matrix.os }}
117119
env:
@@ -184,7 +186,8 @@ jobs:
184186
FuncTest:
185187
name: Functional Testing
186188
needs: [LoadJobs_conf, FullBuild]
187-
if: always() && needs.LoadJobs_conf.outputs.do_FuncTest == 'true'
189+
if: always() && needs.LoadJobs_conf.outputs.do_FuncTest == 'true' &&
190+
(needs.LoadJobs_conf.outputs.do_FullBuild != 'true' || needs.FullBuild.result == 'success')
188191
# The type of runner that the job will run on
189192
runs-on: ubuntu-${{ matrix.os }}
190193
env:
@@ -257,7 +260,8 @@ jobs:
257260
Glitching:
258261
name: Glitch Injection
259262
needs: [LoadJobs_conf, FuncTest]
260-
if: always() && needs.LoadJobs_conf.outputs.do_Glitch == 'true'
263+
if: always() && needs.LoadJobs_conf.outputs.do_Glitch == 'true' &&
264+
(needs.LoadJobs_conf.outputs.do_FuncTest != 'true' || needs.FuncTest.result == 'success')
261265
# The type of runner that the job will run on
262266
runs-on: ubuntu-${{ matrix.os }}
263267
env:
@@ -330,7 +334,8 @@ jobs:
330334
Fuzzing:
331335
name: Fuzz with OSS-Fuzz
332336
needs: [LoadJobs_conf, Glitching]
333-
if: always() && needs.LoadJobs_conf.outputs.do_Fuzzing == 'true'
337+
if: always() && needs.LoadJobs_conf.outputs.do_Fuzzing == 'true' &&
338+
(needs.LoadJobs_conf.outputs.do_Glitch != 'true' || needs.Glitching.result == 'success')
334339
runs-on: ubuntu-latest
335340
permissions:
336341
security-events: write
@@ -380,6 +385,7 @@ jobs:
380385
name: Build&Push to DockerHub
381386
needs: [LoadJobs_conf, Fuzzing]
382387
if: always() && needs.LoadJobs_conf.outputs.do_Docker == 'true' &&
388+
(needs.LoadJobs_conf.outputs.do_Fuzzing != 'true' || needs.Fuzzing.result == 'success') &&
383389
(github.event_name == 'push' || github.event_name == 'pull_request')
384390
runs-on: ubuntu-latest
385391
permissions:
@@ -505,6 +511,8 @@ jobs:
505511
uses: docker/build-push-action@v6
506512
env:
507513
CACHE_SPEC: "type=registry,ref=${{ env.GHCR_REPO }}:${{ env.BRANCH_TAG }}-${{ env.OS_TAG }}-buildcache"
514+
DOCKER_BUILD_SUMMARY: false
515+
DOCKER_BUILD_RECORD_UPLOAD: false
508516
with:
509517
context: .
510518
file: ./docker/Dockerfile
@@ -526,6 +534,9 @@ jobs:
526534
- name: Export ccache
527535
if: env.DOCKER_RW == 'true'
528536
uses: docker/build-push-action@v6
537+
env:
538+
DOCKER_BUILD_SUMMARY: false
539+
DOCKER_BUILD_RECORD_UPLOAD: false
529540
with:
530541
file: ./docker/Dockerfile.export_ccache
531542
build-args: BUILD_IMAGE=${{ env.BUILD_IMAGE }}
@@ -536,6 +547,9 @@ jobs:
536547
- name: Push Docker image
537548
if: env.DOCKER_RW == 'true'
538549
uses: docker/build-push-action@v6
550+
env:
551+
DOCKER_BUILD_SUMMARY: false
552+
DOCKER_BUILD_RECORD_UPLOAD: false
539553
with:
540554
context: .
541555
file: ./docker/Dockerfile.push

0 commit comments

Comments
 (0)