From 088bf244f4b7b973f360bc0b3ea507908907b2c5 Mon Sep 17 00:00:00 2001 From: Barry Walker Date: Tue, 13 Jan 2026 14:16:25 -0500 Subject: [PATCH] Add automatic Docker builds on main branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .woodpecker.yml | 27 ++++++++++++++++++++++++--- README.md | 5 ++++- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 1e47d96..b025a4d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -60,8 +60,29 @@ steps: - event: [push, tag] branch: main - # Build and push Docker image (tags only) - package-docker: + # Build and push Docker image (main branch - dev tag) + 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 settings: repo: ghcr.io/barryw/paperlessmcp @@ -105,6 +126,6 @@ steps: files: - artifacts/*.nupkg title: ${CI_COMMIT_TAG} - depends_on: [package-nuget, package-docker] + depends_on: [package-nuget, docker-release] when: - event: tag diff --git a/README.md b/README.md index d83ef04..cbf02c4 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,10 @@ git tag 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