ci: restrict paths

This commit is contained in:
naskya 2024-05-07 18:34:18 +09:00
parent 1128e243d3
commit 3b3d457c3e
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
1 changed files with 12 additions and 1 deletions

View File

@ -74,6 +74,17 @@ container_image_build:
services: []
rules:
- if: $CI_COMMIT_BRANCH == 'develop'
changes:
paths:
- packages/**/*
- locales/**/*
- scripts/copy-assets.mjs
- package.json
- pnpm-lock.yaml
- Cargo.toml
- Cargo.lock
- Dockerfile
- .dockerignore
before_script:
- apt-get update && apt-get -y upgrade
- apt-get install -y --no-install-recommends buildah ca-certificates fuse-overlayfs
@ -87,7 +98,7 @@ container_image_build:
cargo_unit_test:
stage: test
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' || $CI_COMMIT_BRANCH == 'develop'
changes:
paths:
- packages/backend-rs/**/*