e93554e4bc
fix #74 Mainly borrowed from https://github.com/drone-plugins/drone-docker/tree/master/cmd/drone-ecr. `drone/ecr` is still on 20.10.14 and sparsely updated/maintained. Would be great to add support for additional registries like ECR to buildx. The login process is as follows: 1. Call the AWS API with some arguments to get a short-lived auth token (12h) 2. Use the token and Username `AWS` for the `docker login` call ## Notes - To push to ECR, the full registry URL must be given in the tag, i.e. `registry/owner/repo`. For this, `Registry` must also be added the to `Build` struct besides the `Settings` struct - For now I've only referenced the source in `ecr.go` by using the most recent commit of today. Should this be done differently? - The implementation here from me is simple and probably a bit "naive" as this is my first "real" golang feature PR. - I've tested this change with a custom image and was able to successfully push to ECR while dynamically creating a repository. Proper tests would still be great... - Vars `assumeRole` and `externalID` are somehow not exposed in https://plugins.drone.io/plugins/ecr and I am not sure if this is by design or because they were just forgotten. Anyhow, this is reason I didn't expose them for now and just added internal dummy vars. Co-authored-by: pat-s <patrick.schratz@gmail.com> Co-committed-by: pat-s <patrick.schratz@gmail.com> |
||
---|---|---|
cmd/docker-buildx | ||
plugin | ||
utils | ||
.changelog.yml | ||
.dictionary | ||
.gitignore | ||
.markdownlint.yml | ||
.prettierignore | ||
.woodpecker.yml | ||
CONTRIBUTING.md | ||
Corefile | ||
Dockerfile.multiarch | ||
docs.md | ||
go.mod | ||
go.sum | ||
LICENSE | ||
Makefile | ||
README.md | ||
renovate.json |
plugin-docker-buildx
Woodpecker CI plugin to build multiarch Docker images with buildx. This plugin was initially a fork of thegeeklab/drone-docker-buildx (now archived in favor of this plugin) which itself was a fork of drone-plugins/drone-docker. You can find the full documentation at woodpecker-ci.org (docs.md).
Images
Images are available on Dockerhub and in the Codeberg registry.
License
This project is licensed under the Apache-2.0 License - see the LICENSE file for details.