2022-05-13 00:46:56 +02:00
|
|
|
###################################
|
|
|
|
# build and publish docker images #
|
|
|
|
###################################
|
|
|
|
# branch: master
|
|
|
|
# event: tag
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- tests
|
|
|
|
|
2022-05-13 11:49:13 +02:00
|
|
|
clone:
|
|
|
|
git:
|
|
|
|
when:
|
2022-05-13 12:29:53 +02:00
|
|
|
#branch: master
|
2022-05-13 11:49:13 +02:00
|
|
|
event: tag
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
|
2022-05-13 00:46:56 +02:00
|
|
|
pipeline:
|
|
|
|
|
2022-05-13 14:29:52 +02:00
|
|
|
# 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
|
|
|
|
|
2022-05-13 00:46:56 +02:00
|
|
|
# build and publish docker image for amd64 - x86
|
|
|
|
build-amd64:
|
|
|
|
when:
|
2022-05-13 12:29:53 +02:00
|
|
|
#branch: master
|
2022-05-13 00:46:56 +02:00
|
|
|
event: tag
|
2022-05-13 11:38:36 +02:00
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
pull: true
|
2022-05-13 00:46:56 +02:00
|
|
|
settings:
|
|
|
|
repo: olofvndrhr/manga-dlp
|
2022-05-13 11:38:36 +02:00
|
|
|
platforms: linux/amd64
|
2022-05-13 00:46:56 +02:00
|
|
|
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:
|
2022-05-13 12:29:53 +02:00
|
|
|
#branch: master
|
2022-05-13 00:46:56 +02:00
|
|
|
event: tag
|
2022-05-13 11:38:36 +02:00
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
pull: true
|
2022-05-13 00:46:56 +02:00
|
|
|
settings:
|
|
|
|
repo: olofvndrhr/manga-dlp
|
2022-05-13 13:53:35 +02:00
|
|
|
platforms: linux/arm64
|
2022-05-13 00:46:56 +02:00
|
|
|
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:
|
2022-05-13 12:29:53 +02:00
|
|
|
#branch: master
|
2022-05-13 00:46:56 +02:00
|
|
|
event: tag
|
|
|
|
image: plugins/manifest
|
2022-05-13 11:38:36 +02:00
|
|
|
pull: true
|
2022-05-13 00:46:56 +02:00
|
|
|
settings:
|
|
|
|
spec: docker/manifest.tmpl
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
username:
|
|
|
|
from_secret: cr-dhub-username
|
|
|
|
password:
|
|
|
|
from_secret: cr-dhub-key
|
|
|
|
|