- Add .woodpecker.yml with build+push on main, dry-run on pull_request - Image target: 192.168.178.6:8083/cschulz/rd13_media_wiki:latest - Update copilot-instructions.md: GHCR → Forgejo Registry, GH Actions → Woodpecker - Update README.md: replace GitHub Actions reference with Woodpecker CI
26 lines
705 B
YAML
26 lines
705 B
YAML
steps:
|
|
# Build and push image on push to main
|
|
- name: docker-build-push
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
registry: 192.168.178.6:8083
|
|
repo: 192.168.178.6:8083/cschulz/rd13_media_wiki
|
|
tags: latest
|
|
platforms: linux/amd64
|
|
username: cschulz
|
|
password:
|
|
from_secret: RD13_MW_DOCKER_BUILD_TOKEN
|
|
when:
|
|
- event: push
|
|
branch: main
|
|
|
|
# Build only (no push) on pull requests
|
|
- name: docker-build-only
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
repo: 192.168.178.6:8083/cschulz/rd13_media_wiki
|
|
platforms: linux/amd64
|
|
dry_run: true
|
|
when:
|
|
- event: pull_request
|
|
branch: main
|