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

https://github.com/pbrisbin/docker-build-cached-orb

Build a docker image, with target caching, on Circle CI
https://github.com/pbrisbin/docker-build-cached-orb

Last synced: 4 months ago
JSON representation

Build a docker image, with target caching, on Circle CI

Awesome Lists containing this project

README

        

# Docker Build Cached Orb [![CircleCI status](https://circleci.com/gh/pbrisbin/docker-build-cached-orb.svg "CircleCI status")](https://circleci.com/gh/pbrisbin/docker-build-cached-orb)

Build a docker image, handling caching of possibly multi-stage images, and
release a final image tagged for the built SHA.

## Usage

```yaml
version: 2.1

orbs:
docker-build-cached: pbrisbin/[email protected]

workflows:
build_and_release:
jobs:
- docker-build-cached/build-and-release:
registry-username: DOCKERHUB_USERNAME
registry-password: DOCKERHUB_PASSWORD
image: foo/bar
build-stages: builder
extra-build-arguments: '--build-arg "REVISION=$CIRCLE_SHA1"'
```

See [all examples](./src/examples/).

---

[LICENSE](./LICENSE) | [CHANGELOG](./CHANGELOG.md)