mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
Recurse rules
This commit is contained in:
parent
d98dfd40b5
commit
7cc8cd6127
5 changed files with 107 additions and 0 deletions
28
.rules/consistent_container_image_sources.mdc
Normal file
28
.rules/consistent_container_image_sources.mdc
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
```yaml
|
||||
name: consistent-container-image-sources
|
||||
description: Maintain consistent image sources in Docker compose files using authorized registries
|
||||
globs: ['**/docker-compose.yml', '**/docker-compose.*.yml']
|
||||
alwaysApply: true
|
||||
```
|
||||
|
||||
Docker compose files should use consistent image sources from authorized registries rather than local builds in production configurations.
|
||||
|
||||
❌ Bad - Mixing build and image sources:
|
||||
```yaml
|
||||
services:
|
||||
frontend:
|
||||
build: ./frontend
|
||||
backend:
|
||||
image: ghcr.io/org/backend:latest
|
||||
```
|
||||
|
||||
✅ Good - Consistent image sources:
|
||||
```yaml
|
||||
services:
|
||||
frontend:
|
||||
image: ghcr.io/org/frontend:latest
|
||||
backend:
|
||||
image: ghcr.io/org/backend:latest
|
||||
```
|
||||
|
||||
Use build contexts only in development compose files.
|
||||
Loading…
Add table
Add a link
Reference in a new issue