2025-01-13 17:37:19 +04:00
|
|
|
matrix:
|
|
|
|
platform:
|
|
|
|
- linux/amd64
|
|
|
|
- linux/arm64
|
|
|
|
|
|
|
|
labels:
|
|
|
|
platform: ${platform}
|
2025-01-07 03:28:00 +04:00
|
|
|
|
|
|
|
when:
|
|
|
|
branch: main
|
2025-01-07 04:29:03 +04:00
|
|
|
event: [push, pull_request, tag]
|
2025-01-07 03:28:00 +04:00
|
|
|
|
|
|
|
variables:
|
2025-01-08 06:42:39 +04:00
|
|
|
- &repo source.hodakov.me/${CI_REPO_OWNER}/phpbb
|
2025-01-07 03:28:00 +04:00
|
|
|
|
|
|
|
steps:
|
2025-01-13 17:37:19 +04:00
|
|
|
test-build:
|
2025-01-07 03:28:00 +04:00
|
|
|
image: woodpeckerci/plugin-docker-buildx:5.1.0
|
|
|
|
privileged: true
|
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
2025-01-13 17:37:19 +04:00
|
|
|
platforms: ${platform}
|
2025-01-07 03:28:00 +04:00
|
|
|
dry_run: true
|
|
|
|
repo: *repo
|
2025-01-07 04:29:03 +04:00
|
|
|
auto_tag: true
|
2025-01-07 03:28:00 +04:00
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
|
|
|
|
publish:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx:5.1.0
|
|
|
|
privileged: true
|
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
2025-01-13 17:37:19 +04:00
|
|
|
platforms: ${platform}
|
2025-01-07 03:28:00 +04:00
|
|
|
repo: *repo
|
|
|
|
registry: source.hodakov.me
|
2025-01-07 04:29:03 +04:00
|
|
|
auto_tag: true
|
2025-01-07 03:28:00 +04:00
|
|
|
username: ${CI_REPO_OWNER}
|
|
|
|
password:
|
|
|
|
from_secret: registry_token
|
|
|
|
when:
|
2025-01-07 04:29:03 +04:00
|
|
|
event: [push, tag]
|