From e4dfd99b1cbced6560d337650920b807f1632686 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 9 Dec 2024 21:43:05 +0000 Subject: [PATCH] Only run GitLab CI on `master` They're reducing CI time --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae65c13..92bcc6e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,8 @@ stages: static: image: node:20-slim stage: build + only: + - master cache: key: npm-$CI_COMMIT_REF_SLUG paths: @@ -25,6 +27,8 @@ static: pip: image: python:3.12-slim stage: build + only: + - master variables: PIP_CACHE_DIR: $CI_PROJECT_DIR/.pip-cache cache: @@ -136,8 +140,6 @@ container: DOCKER_BUILDKIT: 1 dependencies: [] stage: deploy - only: - - master before_script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY script: