0
0
mirror of https://github.com/thegeeklab/wp-docker-buildx.git synced 2024-11-22 10:10:39 +00:00
Woodpecker CI plugin to build multiarch OCI images with buildx
Go to file
2021-01-11 00:33:59 +01:00
.github fork: initial release 2021-01-10 23:47:55 +01:00
cmd/drone-docker-buildx fix gitignore 2021-01-11 00:01:27 +01:00
docker fix docker source image names 2021-01-11 00:21:18 +01:00
.drone.jsonnet disable arm32 as broken 2021-01-11 00:29:54 +01:00
.drone.yml disable arm32 as broken 2021-01-11 00:29:54 +01:00
.gitignore fix gitignore 2021-01-11 00:01:27 +01:00
daemon.go update config.json messaging 2020-03-24 13:49:10 -07:00
docker_test.go ability to disable purge 2017-11-09 13:28:19 -08:00
docker.go chore: fix static check 2021-01-10 23:53:07 +01:00
go.mod cleanup go dependencies 2021-01-11 00:33:59 +01:00
go.sum cleanup go dependencies 2021-01-11 00:33:59 +01:00
LICENSE fork: initial release 2021-01-10 23:47:55 +01:00
README.md fork: initial release 2021-01-10 23:47:55 +01:00
renovate.json fork: initial release 2021-01-10 23:47:55 +01:00
tags_test.go semver parsing fails pipeline step 2020-05-19 13:26:13 -04:00
tags.go semver parsing fails pipeline step 2020-05-19 13:26:13 -04: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.

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.