buildtest/.gitlab-ci.yml
2023-07-06 17:53:19 +02:00

20 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"