Skip to content
Snippets Groups Projects

feature(core): refactor GitLab CI build rules structure

Merged Sebastian Pisula requested to merge feature/new-ci into main
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
+ 3
3
@@ -11,7 +11,7 @@ stages:
@@ -11,7 +11,7 @@ stages:
- build
- build
- deploy
- deploy
.template: &build-rules
.build-rules:
rules:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_REF_NAME == "devel"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_REF_NAME == "devel"'
when: always
when: always
@@ -65,7 +65,7 @@ stages:
@@ -65,7 +65,7 @@ stages:
DEPLOY_HOST: $PRODUCTION_DEPLOY_HOST
DEPLOY_HOST: $PRODUCTION_DEPLOY_HOST
build web frontend:
build web frontend:
<<: *build-rules
extends: .build-rules
image: node:latest
image: node:latest
artifacts:
artifacts:
paths:
paths:
@@ -84,7 +84,7 @@ build web frontend:
@@ -84,7 +84,7 @@ build web frontend:
- npm run build
- npm run build
build web backend:
build web backend:
<<: *build-rules
extends: .build-rules
image: composer:latest
image: composer:latest
artifacts:
artifacts:
paths:
paths:
Loading