Skip to content
Snippets Groups Projects
Commit f1f99098 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

chore: Try with 'rules' instead of 'only'

parent 3f20b33a
No related branches found
No related tags found
No related merge requests found
Pipeline #2498 passed
...@@ -44,9 +44,9 @@ build: ...@@ -44,9 +44,9 @@ build:
artifacts: artifacts:
paths: paths:
- target/*.war - target/*.war
only: rules:
- $MAIN_BRANCH - if: $CI_COMMIT_REF_NAME == $MAIN_BRANCH
- $RELEASE_BRANCH - if: $CI_COMMIT_REF_NAME == $RELEASE_BRANCH
test: test:
stage: test stage: test
...@@ -54,9 +54,9 @@ test: ...@@ -54,9 +54,9 @@ test:
- "./mvnw $MAVEN_POM_WITH_MODELS $MAVEN_CLI_OPTS $MAVEN_OPTS test" - "./mvnw $MAVEN_POM_WITH_MODELS $MAVEN_CLI_OPTS $MAVEN_OPTS test"
tags: tags:
- vips-java - vips-java
only: rules:
- $MAIN_BRANCH - if: $CI_COMMIT_REF_NAME == $MAIN_BRANCH
- $RELEASE_BRANCH - if: $CI_COMMIT_REF_NAME == $RELEASE_BRANCH
deploy-to-staging: deploy-to-staging:
stage: deploy stage: deploy
...@@ -99,7 +99,7 @@ deploy-to-staging: ...@@ -99,7 +99,7 @@ deploy-to-staging:
tags: tags:
- vips-java - vips-java
rules: rules:
- if: "$CI_COMMIT_REF_NAME == $MAIN_BRANCH" - if: $CI_COMMIT_REF_NAME == $MAIN_BRANCH
environment: environment:
name: staging name: staging
url: https://vipscore02test.nibio.no url: https://vipscore02test.nibio.no
...@@ -115,7 +115,7 @@ upload-snapshot: ...@@ -115,7 +115,7 @@ upload-snapshot:
tags: tags:
- vips-java - vips-java
rules: rules:
- if: "$CI_COMMIT_REF_NAME == $MAIN_BRANCH" - if: $CI_COMMIT_REF_NAME == $MAIN_BRANCH
deploy-to-production: deploy-to-production:
stage: deploy stage: deploy
...@@ -186,4 +186,4 @@ upload-and-tag-release: ...@@ -186,4 +186,4 @@ upload-and-tag-release:
tags: tags:
- vips-java - vips-java
rules: rules:
- if: "$CI_COMMIT_REF_NAME == $RELEASE_BRANCH" - if: $CI_COMMIT_REF_NAME == $RELEASE_BRANCH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment