transmission-daemon/.woodpecker/build.yml

45 lines
950 B
YAML

---
when:
branch: main
path:
- Dockerfile
- .woodpecker/build.yml
variables:
- &buildx woodpeckerci/plugin-docker-buildx:5.0.0
- &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:
# <TRANSMISSION_VERSION>-alpine<ALPINE_VERSION>
- echo $(grep 'TRANSMISSION_VERSION=' Dockerfile | sed s/.*=//)-alpine$(grep 'FROM alpine' Dockerfile | sed s/.*:// | sed s/[[:space:]].*//) > .tags
- cat .tags
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