buildtest/.gitlab-ci.yml
2023-09-22 17:49:56 +02:00

33 lines
630 B
YAML

stages:
- build_on_main
- build_on_tag
.tag_only: &tag_only
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
.ddadevops: &ddo
image: "domaindrivenarchitecture/ddadevops:4.7.2"
before_script:
- export RELEASE_ARTIFACT_TOKEN=$MEISSA_REPO_BUERO_RW
- export PROTECTED_TOKEN_EXAMPLE=$PROTECTED_TOKEN_EXAMPLE
build_on_main:
<<: *ddo
stage: build_on_main
script:
- echo "buld on main"
build_on_tag:
<<: *ddo
<<: *tag_only
stage: build_on_tag
script:
- echo "buld on tag"
- pyb publish_artifacts