Drone plugin to build multiarch Docker images with buildx. This plugin is a fork of drone-plugins/drone-docker.
IMPORTANT: Be aware that the this plugin requires privileged capabilities, otherwise the integrated Docker daemon is not able to start.
kind: pipeline
type: docker
name: default
steps:
- name: docker
image: owncloudci/drone-docker-buildx
privileged: true
settings:
username: octocat
password: secure
repo: octocat/example
tags: latest
Build the binary with the following command:
make build
Build the Docker image with the following command:
docker build --file Dockerfile.multiarch --tag owncloudci/drone-docker-buildx .
docker run --rm \
-e PLUGIN_TAG=latest \
-e PLUGIN_REPO=octocat/hello-world \
-e DRONE_COMMIT_SHA=00000000 \
-v $(pwd):$(pwd) \
-w $(pwd) \
--privileged \
owncloudci/drone-docker-buildx --dry-run
Create and push the new tag to trigger the CI release process:
git tag v2.10.3
git push origin v2.10.3
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
Copyright (c) 2022 ownCloud GmbH