21 lines
440 B
YAML
21 lines
440 B
YAML
|
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"
|
||
|
|