mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
Switched to regex trigger
The previous trigger condition wasn't liked by Gitlab's yaml parser. I'm switching to trying a commit message based regex trigger. This message does not contain the trigger and so should not fire the dry run.
This commit is contained in:
parent
0a1a37f048
commit
bd4600576f
@ -191,12 +191,7 @@ dryrun_create_build_machines:
|
||||
- bash scripts/cicd/build-orchestration/build-machine-ctrl.sh create arm64-deb
|
||||
- bash scripts/cicd/build-orchestration/build-machine-ctrl.sh create amd64-rpm
|
||||
rules:
|
||||
- if: ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event") && $CI_COMMIT_TAG == NULL
|
||||
changes:
|
||||
- .gitlab-ci.yml
|
||||
- scripts/cicd/**/*
|
||||
- Earthfile
|
||||
- package/**/*
|
||||
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
|
||||
|
||||
dryrun_package_amd64_deb:
|
||||
stage: build_packages
|
||||
@ -209,12 +204,7 @@ dryrun_package_amd64_deb:
|
||||
- earthly +package-linux-amd64-deb
|
||||
- bash scripts/cicd/build-machine/scp-to-orchestrator.sh
|
||||
rules:
|
||||
- if: ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event") && $CI_COMMIT_TAG == NULL
|
||||
changes:
|
||||
- .gitlab-ci.yml
|
||||
- scripts/cicd/**/*
|
||||
- Earthfile
|
||||
- package/**/*
|
||||
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
|
||||
|
||||
dryrun_package_arm64_deb:
|
||||
stage: build_packages
|
||||
@ -227,12 +217,7 @@ dryrun_package_arm64_deb:
|
||||
- earthly +package-linux-arm64-deb
|
||||
- bash scripts/cicd/build-machine/scp-to-orchestrator.sh
|
||||
rules:
|
||||
- if: ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event") && $CI_COMMIT_TAG == NULL
|
||||
changes:
|
||||
- .gitlab-ci.yml
|
||||
- scripts/cicd/**/*
|
||||
- Earthfile
|
||||
- package/**/*
|
||||
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
|
||||
|
||||
dryrun_package_amd64_rpm:
|
||||
stage: build_packages
|
||||
@ -245,12 +230,7 @@ dryrun_package_amd64_rpm:
|
||||
- earthly +package-linux-amd64-rpm
|
||||
- bash scripts/cicd/build-machine/scp-to-orchestrator.sh
|
||||
rules:
|
||||
- if: ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event") && $CI_COMMIT_TAG == NULL
|
||||
changes:
|
||||
- .gitlab-ci.yml
|
||||
- scripts/cicd/**/*
|
||||
- Earthfile
|
||||
- package/**/*
|
||||
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
|
||||
|
||||
# dryrun_publish_crates:
|
||||
# stage: build_packages
|
||||
@ -279,12 +259,7 @@ dryrun_publish_python:
|
||||
script:
|
||||
- cd veilid-python && /home/gitlab-runner/.local/bin/poetry build
|
||||
rules:
|
||||
- if: ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event") && $CI_COMMIT_TAG == NULL
|
||||
changes:
|
||||
- .gitlab-ci.yml
|
||||
- scripts/cicd/**/*
|
||||
- Earthfile
|
||||
- package/**/*
|
||||
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
|
||||
|
||||
dryrun_build_repositories:
|
||||
stage: distribute
|
||||
@ -296,12 +271,7 @@ dryrun_build_repositories:
|
||||
- cp scripts/cicd/build-orchestration/generate-release.sh ~
|
||||
- bash scripts/cicd/build-orchestration/distribute-packages.sh
|
||||
rules:
|
||||
- if: ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event") && $CI_COMMIT_TAG == NULL
|
||||
changes:
|
||||
- .gitlab-ci.yml
|
||||
- scripts/cicd/**/*
|
||||
- Earthfile
|
||||
- package/**/*
|
||||
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
|
||||
|
||||
dryrun_deploy_repos:
|
||||
stage: distribute
|
||||
@ -312,12 +282,7 @@ dryrun_deploy_repos:
|
||||
script:
|
||||
- ls -al repo.tar
|
||||
rules:
|
||||
- if: ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event") && $CI_COMMIT_TAG == NULL
|
||||
changes:
|
||||
- .gitlab-ci.yml
|
||||
- scripts/cicd/**/*
|
||||
- Earthfile
|
||||
- package/**/*
|
||||
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
|
||||
|
||||
dryrun_delete_build_machines:
|
||||
stage: distribute
|
||||
@ -330,9 +295,4 @@ dryrun_delete_build_machines:
|
||||
- bash scripts/cicd/build-orchestration/build-machine-ctrl.sh delete arm64-deb
|
||||
- bash scripts/cicd/build-orchestration/build-machine-ctrl.sh delete amd64-rpm
|
||||
rules:
|
||||
- if: ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "merge_request_event") && $CI_COMMIT_TAG == NULL
|
||||
changes:
|
||||
- .gitlab-ci.yml
|
||||
- scripts/cicd/**/*
|
||||
- Earthfile
|
||||
- package/**/*
|
||||
- if: $CI_COMMIT_MESSAGE =~ /\[ci dryrun]/
|
Loading…
Reference in New Issue
Block a user