You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
440 B
YAML
21 lines
440 B
YAML
1 year ago
|
stages:
|
||
|
- build_on_main
|
||
|
- build_on_tag
|
||
|
|
||
|
build_on_main:
|
||
|
image: domaindrivenarchitecture/devops-build:latest
|
||
|
stage: build_on_main
|
||
|
script:
|
||
|
- echo "buld on main"
|
||
|
|
||
|
build_on_tag:
|
||
|
image: domaindrivenarchitecture/devops-build:latest
|
||
|
stage: build_on_tag
|
||
|
rules:
|
||
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||
|
when: never
|
||
|
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
|
||
|
script:
|
||
|
- echo "buld on tag"
|
||
|
|