Only run GitLab CI on master
They're reducing CI time
This commit is contained in:
parent
058e9b945c
commit
e4dfd99b1c
1 changed files with 4 additions and 2 deletions
|
@ -6,6 +6,8 @@ stages:
|
||||||
static:
|
static:
|
||||||
image: node:20-slim
|
image: node:20-slim
|
||||||
stage: build
|
stage: build
|
||||||
|
only:
|
||||||
|
- master
|
||||||
cache:
|
cache:
|
||||||
key: npm-$CI_COMMIT_REF_SLUG
|
key: npm-$CI_COMMIT_REF_SLUG
|
||||||
paths:
|
paths:
|
||||||
|
@ -25,6 +27,8 @@ static:
|
||||||
pip:
|
pip:
|
||||||
image: python:3.12-slim
|
image: python:3.12-slim
|
||||||
stage: build
|
stage: build
|
||||||
|
only:
|
||||||
|
- master
|
||||||
variables:
|
variables:
|
||||||
PIP_CACHE_DIR: $CI_PROJECT_DIR/.pip-cache
|
PIP_CACHE_DIR: $CI_PROJECT_DIR/.pip-cache
|
||||||
cache:
|
cache:
|
||||||
|
@ -136,8 +140,6 @@ container:
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
dependencies: []
|
dependencies: []
|
||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
|
||||||
- master
|
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
script:
|
script:
|
||||||
|
|
Loading…
Reference in a new issue