Go to file
2021-09-11 20:19:37 +02:00
.chglog chore: improve generated changelog (#25) 2021-05-09 23:46:51 +02:00
.github disable require branches to be up to date 2021-05-25 17:44:06 +02:00
cmd/drone-docker-buildx docs: add parameter documentation 2021-09-11 20:19:37 +02:00
docker chore(docker): update docker digests 2021-09-01 14:56:23 +00:00
plugin fix: remove unimplemented squash option (#52) 2021-09-07 21:34:47 +02:00
.drone.jsonnet chore: update build env to golang 1.16 (#26) 2021-05-10 09:03:59 +02:00
.drone.yml chore: update build env to golang 1.16 (#26) 2021-05-10 09:03:59 +02:00
.gitignore ci: auto-generate changelog (#10) 2021-02-15 10:46:58 +01:00
.prettierignore chore: improve generated changelog (#25) 2021-05-09 23:46:51 +02:00
CONTRIBUTING.md add missing CONTRIBUTING.md file 2021-01-17 20:39:01 +01:00
go.mod fix(deps): update module honnef.co/go/tools to v0.2.1 (#43) 2021-08-23 20:59:18 +02:00
go.sum fix(deps): update module honnef.co/go/tools to v0.2.1 (#43) 2021-08-23 20:59:18 +02:00
LICENSE fork: initial release 2021-01-10 23:47:55 +01:00
README.md add drone-docker-buildx-ecr to readme 2021-07-03 15:26:01 +02:00
renovate.json fork: initial release 2021-01-10 23:47:55 +01:00

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

Community

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.