From d402212db43a0f6391310f447e80aea6283280ea Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Fri, 26 Sep 2025 20:56:09 -0400 Subject: [PATCH] remove default since it's so limited --- .gitlab-ci.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9eeae2f2c1..d31ba4c275 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,14 +12,6 @@ include: # https://docs.gitlab.com/user/application_security/dependency_scanning/experiment_libbehave_dependency/ - component: $CI_SERVER_FQDN/TransFem-org/libbehave/libbehave@v0.2.4 -# https://docs.gitlab.com/ci/yaml/#default -default: - # "only" has been removed, so we use rules. - # This runs in MR pipelines *or* push to develop/stable - rules: - - if: $CI_PIPELINE_SOURCE == 'merge_request_event' - - if: $CI_PIPELINE_SOURCE == 'push' && ($CI_COMMIT_BRANCH == 'develop' || $CI_COMMIT_BRANCH == 'stable') - # Cache node_modules and share build artifacts for the pipeline. # This shares the same cache definition, but it's the only place that actually *pushes* to the cache. # https://docs.gitlab.com/ci/caching/ @@ -27,6 +19,7 @@ default: # https://github.com/pnpm/pnpm/issues/1174#issuecomment-1641267133 build: &build stage: build + image: docker.io/node:22 variables: POSTGRES_PASSWORD: 'ci' COREPACK_DEFAULT_TO_LATEST: '0' @@ -78,7 +71,11 @@ build: &build - packages/misskey-reversi/built/ policy: push-pull when: on_success - image: docker.io/node:22 + # "only" has been removed, so we use rules. + # This runs in MR pipelines *or* push to develop/stable + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + - if: $CI_PIPELINE_SOURCE == 'push' && ($CI_COMMIT_BRANCH == 'develop' || $CI_COMMIT_BRANCH == 'stable') .test_common: &test_common <<: *build