mirror of
https://github.com/thegeeklab/drone-docker-buildx.git
synced 2024-11-05 04:20:41 +00:00
.github | ||
cmd/drone-docker-buildx | ||
docker | ||
.drone.jsonnet | ||
.drone.yml | ||
.gitignore | ||
daemon.go | ||
docker_test.go | ||
docker.go | ||
go.mod | ||
go.sum | ||
LICENSE | ||
README.md | ||
renovate.json | ||
tags_test.go | ||
tags.go |
drone-docker-buildx
Drone plugin to build multiarch Docker images with buildx
Drone plugin to build multiarch Docker images with buildx.
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.