Add automatic Docker builds on main branch
- docker-dev: Builds and pushes :dev tag on every main push - docker-release: Builds :latest and :vX.Y.Z on tags - docker-verify: Dry-run build on PRs Updated README with Docker tag documentation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+24
-3
@@ -60,8 +60,29 @@ steps:
|
|||||||
- event: [push, tag]
|
- event: [push, tag]
|
||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
# Build and push Docker image (tags only)
|
# Build and push Docker image (main branch - dev tag)
|
||||||
package-docker:
|
docker-dev:
|
||||||
|
image: *docker_image
|
||||||
|
settings:
|
||||||
|
repo: ghcr.io/barryw/paperlessmcp
|
||||||
|
dockerfile: PaperlessMCP/Dockerfile
|
||||||
|
context: PaperlessMCP
|
||||||
|
platforms:
|
||||||
|
- linux/amd64
|
||||||
|
- linux/arm64
|
||||||
|
tag: dev
|
||||||
|
registry: ghcr.io
|
||||||
|
username:
|
||||||
|
from_secret: github_username
|
||||||
|
password:
|
||||||
|
from_secret: github_token
|
||||||
|
depends_on: [version]
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
|
|
||||||
|
# Build and push Docker image (tags - release)
|
||||||
|
docker-release:
|
||||||
image: *docker_image
|
image: *docker_image
|
||||||
settings:
|
settings:
|
||||||
repo: ghcr.io/barryw/paperlessmcp
|
repo: ghcr.io/barryw/paperlessmcp
|
||||||
@@ -105,6 +126,6 @@ steps:
|
|||||||
files:
|
files:
|
||||||
- artifacts/*.nupkg
|
- artifacts/*.nupkg
|
||||||
title: ${CI_COMMIT_TAG}
|
title: ${CI_COMMIT_TAG}
|
||||||
depends_on: [package-nuget, package-docker]
|
depends_on: [package-nuget, docker-release]
|
||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
|
|||||||
@@ -156,7 +156,10 @@ git tag v1.0.0
|
|||||||
git push origin v1.0.0
|
git push origin v1.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
**Docker Images:** `ghcr.io/barryw/paperlessmcp:latest`
|
**Docker Images:**
|
||||||
|
- `ghcr.io/barryw/paperlessmcp:latest` — Latest release
|
||||||
|
- `ghcr.io/barryw/paperlessmcp:dev` — Latest main branch
|
||||||
|
- `ghcr.io/barryw/paperlessmcp:vX.Y.Z` — Specific version
|
||||||
|
|
||||||
### Project Structure
|
### Project Structure
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user