Skip to content
Snippets Groups Projects
Commit 0c549a09 authored by Yana Kernerman's avatar Yana Kernerman Committed by Yana Kernerman
Browse files

different rules in publish job and build job

parent 3098cb3d
No related branches found
No related tags found
1 merge request!23Tut01 test exercise
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment