Commit 26887e7b authored by Ahmad Sherif's avatar Ahmad Sherif

Merge branch 'set-workflow-default-and-rules' into 'master'

Set 'workflow:rules', and 'default'

See merge request gitlab-org/gitlab-exporter!112
parents eb665c5e 1b2a5daf
Pipeline #152188 passed with stage
in 58 seconds
image: "ruby:2.3" default:
image: "ruby:2.3"
before_script:
- git config --global user.email "bot@gitlab.com"
- git config --global user.name "Bot User"
- bundle install -j $(nproc) --path vendor
cache:
paths:
- vendor
tags:
- gitlab-org
before_script: workflow:
- git config --global user.email "bot@gitlab.com" rules:
- git config --global user.name "Bot User" # For merge requests, create a pipeline.
- bundle install -j $(nproc) --path vendor - if: '$CI_MERGE_REQUEST_IID'
# For `master` branch, create a pipeline (this includes on schedules, pushes, merges, etc.).
cache: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
paths: # For tags, create a pipeline.
- vendor - if: '$CI_COMMIT_TAG'
rspec: rspec:
script: script:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment