Add basic Woodpecker config

This commit is contained in:
2025-01-07 01:43:51 +04:00
parent 6719d4e14a
commit d298cfdc2d

36
.woodpecker.yaml Normal file
View File

@@ -0,0 +1,36 @@
when:
branch: main
event: [push, pull_request]
variables:
- &file Dockerfile
- &repo source.hodakov.me/${CI_REPO_OWNER}/docker-phpbb
steps:
dryrun:
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: *file
platforms: linux/arm64/v8,linux/amd64
dry_run: true
repo: *repo
tags: latest
when:
event: pull_request
path: *file
publish:
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: *file
platforms: linux/arm64/v8,linux/amd64
repo: *repo
registry: source.hodakov.me
tags: latest
username: ${CI_REPO_OWNER}
password:
from_secret: ci_token
when:
event: push
path: *file