2023-07-06 15:53:19 +00:00
|
|
|
stages:
|
|
|
|
- build_on_main
|
|
|
|
- build_on_tag
|
|
|
|
|
2023-08-17 06:46:22 +00:00
|
|
|
|
|
|
|
.tag_only: &tag_only
|
|
|
|
rules:
|
|
|
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
|
|
when: never
|
|
|
|
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
|
|
|
|
|
2023-08-17 06:57:17 +00:00
|
|
|
|
2023-08-17 06:46:22 +00:00
|
|
|
.ddadevops: &ddo
|
2023-09-22 15:49:56 +00:00
|
|
|
image: "domaindrivenarchitecture/ddadevops:4.7.2"
|
2023-08-17 06:46:22 +00:00
|
|
|
before_script:
|
2023-08-17 14:35:50 +00:00
|
|
|
- export RELEASE_ARTIFACT_TOKEN=$MEISSA_REPO_BUERO_RW
|
2023-08-17 14:34:27 +00:00
|
|
|
- export PROTECTED_TOKEN_EXAMPLE=$PROTECTED_TOKEN_EXAMPLE
|
2023-08-17 06:46:22 +00:00
|
|
|
|
|
|
|
|
2023-07-06 15:53:19 +00:00
|
|
|
build_on_main:
|
2023-08-17 06:53:51 +00:00
|
|
|
<<: *ddo
|
2023-07-06 15:53:19 +00:00
|
|
|
stage: build_on_main
|
|
|
|
script:
|
|
|
|
- echo "buld on main"
|
2023-08-17 06:46:22 +00:00
|
|
|
|
2023-07-06 15:53:19 +00:00
|
|
|
|
|
|
|
build_on_tag:
|
2023-08-17 06:46:22 +00:00
|
|
|
<<: *ddo
|
|
|
|
<<: *tag_only
|
2023-07-06 15:53:19 +00:00
|
|
|
stage: build_on_tag
|
|
|
|
script:
|
|
|
|
- echo "buld on tag"
|
2023-08-17 06:46:22 +00:00
|
|
|
- pyb publish_artifacts
|