Skip to content
Snippets Groups Projects
Commit 37f17572 authored by Sebastian Pisula's avatar Sebastian Pisula
Browse files

Merge branch 'feature/new-ci' into 'main'

feature(core): refactor GitLab CI build rules structure

See merge request !25
parents f66f8383 210b5032
No related branches found
No related tags found
1 merge request!25feature(core): refactor GitLab CI build rules structure
...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment