Skip to content
Snippets Groups Projects

Define and run a pipeline

Merged Yana Kernerman requested to merge define_and_run_a_pipeline into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -35,7 +35,7 @@ job_build_artifact:
job_publish_artifact:
stage: publish
rules: # Conditions under which this job should run
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" # Run this job only for merge request event into main.
- if: $CI_PIPELINE_SOURCE == "push" && $CI_MERGE_COMMIT_REF_NAME =~ /main/ # Run this job only for merge request event into main.
when: always
image: curlimages/curl:latest # Custom image with curl
tags:
Loading