manga-dlp/.woodpecker/publish_docker.yml
Ivan Schaller 9d895918e8
Some checks failed
ci/woodpecker/tag/tests Pipeline was successful
ci/woodpecker/tag/publish_docker Pipeline failed
ci/woodpecker/tag/publish_release Pipeline was successful
add qemu setup for docker builds [CI SKIP]
2022-05-13 14:29:52 +02:00

82 lines
1.7 KiB
YAML

###################################
# build and publish docker images #
###################################
# branch: master
# event: tag
depends_on:
- tests
clone:
git:
when:
#branch: master
event: tag
image: woodpeckerci/plugin-git
pipeline:
# setup qemu for multi arch builds
setup-qemu:
when:
#branch: master
event: tag
image: multiarch/qemu-user-static
pull: true
commands:
- /register --reset -p yes
# build and publish docker image for amd64 - x86
build-amd64:
when:
#branch: master
event: tag
image: woodpeckerci/plugin-docker-buildx
pull: true
settings:
repo: olofvndrhr/manga-dlp
platforms: linux/amd64
context: docker
dockerfile: docker/Dockerfile.amd64
auto_tag: true
auto_tag_suffix: linux-amd64
username:
from_secret: cr-dhub-username
password:
from_secret: cr-dhub-key
# build and publish docker image for arm64
build-arm64:
when:
#branch: master
event: tag
image: woodpeckerci/plugin-docker-buildx
pull: true
settings:
repo: olofvndrhr/manga-dlp
platforms: linux/arm64
context: docker
dockerfile: docker/Dockerfile.arm64
auto_tag: true
auto_tag_suffix: linux-arm64
username:
from_secret: cr-dhub-username
password:
from_secret: cr-dhub-key
# publish docker manifest for automatic multi arch pulls
publish-manifest:
when:
#branch: master
event: tag
image: plugins/manifest
pull: true
settings:
spec: docker/manifest.tmpl
auto_tag: true
ignore_missing: true
username:
from_secret: cr-dhub-username
password:
from_secret: cr-dhub-key