Go to file
Robert Kaussow c8cf9c0892
add missing CONTRIBUTING.md file
2021-01-17 20:38:29 +01:00
.github fork: initial commit 2021-01-17 13:06:23 +01:00
cmd/drone-docker fork: initial commit 2021-01-17 13:06:23 +01:00
docker chore(deps): pin docker digests 2021-01-17 14:48:55 +01:00
plugin try to enable custom seccomp profile 2021-01-17 13:57:58 +01:00
.drone.jsonnet enable arm builds 2021-01-17 13:18:23 +01:00
.drone.yml enable arm builds 2021-01-17 13:18:23 +01:00
.gitignore fork: initial commit 2021-01-17 13:06:23 +01:00
CHANGELOG.md [skip ci] update tag 2021-01-17 14:57:22 +01:00
CONTRIBUTING.md add missing CONTRIBUTING.md file 2021-01-17 20:38:29 +01:00
LICENSE fork: initial commit 2021-01-17 13:06:23 +01:00
README.md fix drone badge 2021-01-17 15:21:49 +01:00
go.mod fork: initial commit 2021-01-17 13:06:23 +01:00
go.sum fork: initial commit 2021-01-17 13:06:23 +01:00
renovate.json fork: initial commit 2021-01-17 13:06:23 +01:00

README.md

drone-docker

Drone plugin to build multiarch Docker images

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

Drone plugin to build multiarch Docker images.

Docker Tags

Tags are following the main Docker version e.g. 19.03, the second part is reflecting the plugin "version". A full example would be 19.03.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

Build the Docker image with the following command:

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

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 --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.