buildtest/.gitlab-ci.yml

35 lines
665 B
YAML
Raw Normal View History

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-08-17 07:18:07 +00:00
image: "domaindrivenarchitecture/ddadevops:4.5.5-dev2023-08-17-09-15-42"
2023-08-17 06:46:22 +00:00
before_script:
- export RELEASE_ARTIFACT_TOKEN=$test
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
- pyb publish_artifacts
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