From b3a508b4d4362a2201a1141b1e1704f8fd8424b7 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Wed, 29 Apr 2020 00:43:56 +0200 Subject: [PATCH] Change only to rules block Because only is a deprecated feature --- .gitlab-ci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f82ae43..1bcdeae 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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