Drone plugin fork which uses Docker-in-Docker to build and publish Docker Linux amd64 images only to a Container Registry.
This is just a fork for personal use with additional custom features. However you can always refer to official repository uptream.
This repository has made the following changes:
- Auto tag aliases support via
auto_tag_aliases
list that can be used along withauto_tag
.
For the original plugin features check out the drone-plugins docs.
Note that a Drone pipeline should be configured with privileged: true
.
- name: publish
image: joseluisq/drone-docker
pull: always
# Privileged mode required
privileged: true
settings:
repo: joseluisq/drone-docker
dockerfile: Dockerfile
username:
from_secret: username
password:
from_secret: password
auto_tag: true
# Additional auto tag aliases
auto_tag_aliases:
- latest
make test
Build the binaries with the following commands:
make build
Build the Docker image with the following commands:
make image-build
Notice: Be aware that the Docker plugin currently requires privileged capabilities, otherwise the integrated Docker daemon is not able to start.
make image-dryrun