###################################
# build and publish docker images #
# branch: master
# event: tag
clone:
git:
when:
#branch: master
event: tag
image: woodpeckerci/plugin-git
pipeline:
# build and publish docker image for amd64 - x86
build-amd64:
image: woodpeckerci/plugin-docker-buildx
pull: true
settings:
repo: olofvndrhr/flox-dockerized
platforms: linux/amd64
dockerfile: Dockerfile.amd64
auto_tag: true
auto_tag_suffix: linux-amd64
build_args: BUILD_VERSION=${CI_COMMIT_TAG}
username:
from_secret: cr-dhub-username
password:
from_secret: cr-dhub-key
# build and publish docker image for arm64
build-arm64:
platforms: linux/arm64
dockerfile: Dockerfile.arm64
auto_tag_suffix: linux-arm64
# publish docker manifest for automatic multi arch pulls
publish-manifest:
image: plugins/manifest
spec: manifest.tmpl
ignore_missing: true