You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buildtest/.gitlab-ci.yml

34 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