Change only to rules block

Because only is a deprecated feature
This commit is contained in:
Marcel Schwarz 2020-04-29 00:43:56 +02:00
parent a2b55ca1c0
commit b3a508b4d4

View File

@ -6,9 +6,8 @@ build-vue:
script:
- cd frontend
- docker build --pull -t vue .
only:
- merge_requests
rules:
- if: $CI_MERGE_REQUEST_ID
build-backend:
image: docker:latest
@ -18,13 +17,13 @@ build-backend:
script:
- cd backend
- docker build --pull -t backend .
only:
- merge_requests
rules:
- if: $CI_MERGE_REQUEST_ID
build-android:
image: debian
stage: build
script:
- echo "To be done"
only:
- merge_requests
rules:
- if: $CI_MERGE_REQUEST_ID