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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
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*.*.*"]
|
tags: ["v*.*.*"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ npm start
|
|||||||
# Using the pre-built image (recommended)
|
# 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
|
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
|
cp .env.example .env.local
|
||||||
# Edit .env.local with your JMAP_SERVER_URL
|
# Edit .env.local with your JMAP_SERVER_URL
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
|
|||||||
Reference in New Issue
Block a user