buildtest/.gitlab-ci.yml

21 lines
440 B
YAML
Raw Normal View History

2023-07-06 15:53:19 +00:00
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"