GitLab CI: Restrict when build:ubuntu-dist runs.

Only run build:ubuntu-dist from pushes, and allow it to be manually
built outside the main repository.
This commit is contained in:
Gerald Combs 2021-04-30 09:15:35 -07:00 committed by Wireshark GitLab Utility
parent feefb045ee
commit 6a46e33313
1 changed files with 6 additions and 0 deletions

View File

@ -126,6 +126,12 @@ clang-12:
build:ubuntu-dist:
stage: .pre
extends: .build-ubuntu
rules:
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_URL =~ /.*gitlab.com\/wireshark\/wireshark/'
when: always
- if: '$CI_PROJECT_URL !~ /.*gitlab.com\/wireshark\/wireshark/'
when: manual
- when: never
script:
- perl ../tools/make-version.pl --set-release || ../perl make-version.pl --set-release
- cmake -G Ninja $CMAKE_ARGS -DENABLE_CCACHE=ON ..