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.5.5-dev2023-08-17-09-15-42" before_script: - export RELEASE_ARTIFACT_TOKEN=$test build_on_main: <<: *ddo stage: build_on_main script: - echo "buld on main" - pyb publish_artifacts build_on_tag: <<: *ddo <<: *tag_only stage: build_on_tag script: - echo "buld on tag" - pyb publish_artifacts