Skip to content
Snippets Groups Projects

Re-factor repository workflow

Merged Sylvester Joosten requested to merge 13-re-factor-repository-workflow into master
1 file
+ 18
9
Compare changes
  • Side-by-side
  • Inline
+ 18
9
@@ -9,15 +9,6 @@ stages:
default:
tags:
- silicon
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
- if: '$CI_COMMIT_BRANCH =~ /^v[0-9]+\.[0-9]-stable/'
when: on_success
- if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/'
when: on_success
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: on_success
artifacts:
paths:
- .ci-env
@@ -46,6 +37,15 @@ detect_changes:release:
## Init our job for our desired branches/tags/events
init:
stage: config
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
- if: '$CI_COMMIT_BRANCH =~ /^v[0-9]+\.[0-9]-stable/'
when: on_success
- if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/'
when: on_success
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: on_success
script:
- ./ci/configure_pipeline.sh ci/build_and_deploy.yml.in
artifacts:
@@ -55,6 +55,15 @@ init:
## Dispatch if we ran the previous stage
run:default:
stage: build_and_deploy
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
- if: '$CI_COMMIT_BRANCH =~ /^v[0-9]+\.[0-9]-stable/'
when: on_success
- if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/'
when: on_success
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: on_success
trigger:
include:
- artifact: build_and_deploy.yml
Loading