2024-08-06 01:45:37 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
when:
|
|
|
|
branch: main
|
|
|
|
path:
|
|
|
|
- Dockerfile
|
|
|
|
- .woodpecker/build.yml
|
|
|
|
|
|
|
|
variables:
|
2024-10-10 02:04:06 +02:00
|
|
|
- &buildx woodpeckerci/plugin-docker-buildx:5.0.0
|
2024-08-06 01:45:37 +02:00
|
|
|
- &buildx_settings
|
|
|
|
platforms: linux/amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
dryrun:
|
|
|
|
image: *buildx
|
|
|
|
settings:
|
|
|
|
<<: *buildx_settings
|
|
|
|
dry_run: true
|
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
|
|
|
|
generate_docker_tags:
|
|
|
|
image: bash
|
|
|
|
commands:
|
2024-09-07 03:59:23 +02:00
|
|
|
# <TRANSMISSION_VERSION>-alpine<ALPINE_VERSION>
|
|
|
|
- echo $(grep 'TRANSMISSION_VERSION=' Dockerfile | sed s/.*=//)-alpine$(grep 'FROM alpine' Dockerfile | sed s/.*:// | sed s/[[:space:]].*//) > .tags
|
2024-10-21 14:03:36 +02:00
|
|
|
- cat .tags
|
2024-08-06 01:45:37 +02:00
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
|
|
|
|
publish:
|
|
|
|
image: *buildx
|
|
|
|
settings:
|
|
|
|
<<: *buildx_settings
|
|
|
|
registry: gitea.aireone.xyz
|
|
|
|
repo: gitea.aireone.xyz/${CI_REPO,,}
|
|
|
|
auto_tag: true
|
|
|
|
username:
|
|
|
|
from_secret: publish_username
|
|
|
|
password:
|
|
|
|
from_secret: publish_token
|
|
|
|
when:
|
|
|
|
event: push
|