From 073dd576e603ea8baa99b78929af19b8524946e1 Mon Sep 17 00:00:00 2001 From: Lukas Eipert <leipert@gitlab.com> Date: Thu, 24 Mar 2022 13:25:45 +0100 Subject: [PATCH] ci: Fix review app from forks By simply disabling it --- .gitlab-ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 745ed162..9e7be09f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,14 +50,14 @@ build-and-check: needs: - build-and-check stage: deploy - before_script: + before_script: - apk add --update-cache --no-cache bash publish-to-npm: extends: .publish publish-to-npm-dry-run: - extends: + extends: - .publish rules: # Semantic release checks the target repository for the current branch, @@ -68,7 +68,11 @@ publish-to-npm-dry-run: - semantic-release --branches "$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME" --dry-run --no-ci .review-app: - extends: .rules:only-mrs + rules: + # Semantic release checks the target repository for the current branch, + # which only exists on the source repository, causing a failure. + - !reference ['.rules:exclude-forks', rules] + - !reference ['.rules:only-mrs', rules] stage: deploy tags: - nginx @@ -118,4 +122,4 @@ pages: - ls -alth public/ artifacts: paths: - - public \ No newline at end of file + - public -- GitLab