Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hggh/drone-docker-buildx

DroneCI Docker Buildx Plugin
https://github.com/hggh/drone-docker-buildx

droneci

Last synced: 1 day ago
JSON representation

DroneCI Docker Buildx Plugin

Awesome Lists containing this project

README

        

# DroneCI Docker buildx plugin

This DroneCI Plugin allows you to build multi arch docker images with DroneCI and buildx

## howto use it

```
steps:
- name: publish
image: jgescireum/buildx:latest
settings:
registry: hub.private.com
platforms:
- linux/amd64
- linux/arm64
tags:
- hub.private.com/username/test:latest
environment:
PLUGIN_EXPERIMENTAL: true
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
when:
event:
- push
```

## build

```
go build -v -a -tags netgo -o release/linux/amd64/drone-docker-buildx ./cmd/drone-docker-buildx
```

## docker image

```
docker build -f docker/docker/Dockerfile.linux.amd64 -t jgescireum/buildx:latest .
docker push jgescireum/buildx:latest
```