Add basic Woodpecker config
This commit is contained in:
36
.woodpecker.yaml
Normal file
36
.woodpecker.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user