Skip to content
Snippets Groups Projects
Commit 628d43ac authored by Henrik Askjer's avatar Henrik Askjer
Browse files

Try using workflow: rules

parent b982301a
No related branches found
No related tags found
No related merge requests found
...@@ -2,14 +2,19 @@ stages: ...@@ -2,14 +2,19 @@ stages:
- build - build
- deploy - deploy
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
when: never
- if: '$CI_COMMIT_BRANCH'
build-dev: build-dev:
image: node:latest image: node:latest
tags: tags:
- spraaksamlingene_01 - spraaksamlingene_01
stage: build stage: build
rules: rules:
- if: $CI_OPEN_MERGE_REQUESTS == null
when: never
- if: $CI_COMMIT_TAG == null - if: $CI_COMMIT_TAG == null
when: always when: always
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment