Merge branch 'improve-mr-build-times' into 'master'

Change builds to only build the specific module

See merge request marcel.schwarz/2020ss-qbc-geofence-timetracking!87
This commit is contained in:
Marcel Schwarz 2020-05-30 19:29:17 +00:00
commit ca4da8c993

View File

@ -8,6 +8,10 @@ build-vue:
- docker build --pull -t vue . - docker build --pull -t vue .
rules: rules:
- if: $CI_MERGE_REQUEST_ID - if: $CI_MERGE_REQUEST_ID
changes:
- frontend/**/*
when: always
- when: never
build-backend: build-backend:
image: docker:latest image: docker:latest
@ -19,6 +23,11 @@ build-backend:
- docker build --pull -t backend . - docker build --pull -t backend .
rules: rules:
- if: $CI_MERGE_REQUEST_ID - if: $CI_MERGE_REQUEST_ID
changes:
- backend/**/*
when: always
- when: never
build-android: build-android:
image: docker:latest image: docker:latest
@ -30,3 +39,7 @@ build-android:
- docker build --pull -t android . - docker build --pull -t android .
rules: rules:
- if: $CI_MERGE_REQUEST_ID - if: $CI_MERGE_REQUEST_ID
changes:
- android/**/*
when: always
- when: never