You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Renovate Bot ebc095efb4 chore(deps): update docker digests 8 hours ago
.chglog ci: auto-generate changelog (#10) 2 months ago
.github fix branch in github settings file 3 months ago
cmd/drone-docker-buildx fix redefined flags 3 months ago
docker chore(deps): update docker digests 6 hours ago
plugin append users build-args to the default slice 3 months ago
.drone.jsonnet rebuild drone config (#11) 2 months ago
.drone.yml rebuild drone config (#11) 2 months ago
.gitignore ci: auto-generate changelog (#10) 2 months ago
CONTRIBUTING.md add missing CONTRIBUTING.md file 3 months ago
LICENSE fork: initial release 3 months ago
README.md link back to the original repo 3 months ago
go.mod fix(deps): update module github.com/sirupsen/logrus to v1.8.1 (#18) 1 month ago
go.sum fix(deps): update module github.com/sirupsen/logrus to v1.8.1 (#18) 1 month ago
renovate.json fork: initial release 3 months ago

README.md

drone-docker-buildx

Drone plugin to build multiarch Docker images with buildx

Build Status Docker Hub Quay.io Go Report Card GitHub contributors Source: GitHub License: MIT

Drone plugin to build multiarch Docker images with buildx. This plugin is a fork of drone-plugins/drone-docker.

Docker Tags

Tags are following the main Docker version e.g. 20.10, the second part is reflecting the plugin "version". A full example would be 20.10.5.

Build

Build the binary with the following command:

export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on

go build -v -a -tags netgo -o release/drone-docker-buildx

Build the Docker image with the following command:

docker build --file docker/Dockerfile.amd64 --tag thegeeklab/drone-docker-buildx .

Usage

Notice: Be aware that the tis plugin requires privileged capabilities, otherwise the integrated Docker daemon is not able to start.

docker run --rm \
  -e PLUGIN_TAG=latest \
  -e PLUGIN_REPO=octocat/hello-world \
  -e DRONE_COMMIT_SHA=00000000 \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  --privileged \
  thegeeklab/drone-docker-buildx --dry-run

Contributors

Special thanks goes to all contributors. If you would like to contribute, please see the instructions.

License

This project is licensed under the MIT License - see the LICENSE file for details.