fix(ci): add path filters to Docker workflow to avoid unnecessary rebuilds
This commit is contained in:
@@ -3,6 +3,20 @@ name: Publish Docker Image
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "Dockerfile"
|
||||
- ".dockerignore"
|
||||
- "app/**"
|
||||
- "components/**"
|
||||
- "contexts/**"
|
||||
- "hooks/**"
|
||||
- "lib/**"
|
||||
- "stores/**"
|
||||
- "locales/**"
|
||||
- "public/**"
|
||||
- "package.json"
|
||||
- "package-lock.json"
|
||||
- ".github/workflows/docker-publish.yml"
|
||||
tags: ["v*.*.*"]
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
@@ -202,7 +202,7 @@ npm start
|
||||
# Using the pre-built image (recommended)
|
||||
docker run -p 3000:3000 -e JMAP_SERVER_URL=https://mail.example.com ghcr.io/root-fr/jmap-webmail:latest
|
||||
|
||||
# Using docker-compose
|
||||
# Or with docker compose
|
||||
cp .env.example .env.local
|
||||
# Edit .env.local with your JMAP_SERVER_URL
|
||||
docker compose up -d
|
||||
|
||||
Reference in New Issue
Block a user