Skip to content

Commit 1262bbe

Browse files
committed
docs: correct examples for linter
1 parent 38c0121 commit 1262bbe

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

docs/examples.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -401,19 +401,20 @@ steps:
401401
use: true
402402
create: true
403403
driver: docker-container
404+
404405
- wait
405406
406407
- label: ":docker: Build an image using remote cache"
407-
plugins:
408-
- docker-compose#v5.4.1:
409-
build: app
410-
cache-from:
411-
- type=registry,ref=${DOCKER_REGISTRY}/${IMAGE_REPO}:cache
412-
driver:
413-
name: container
414-
use: true
415-
create: true
416-
driver: docker-container
408+
plugins:
409+
- docker-compose#v5.4.1:
410+
build: app
411+
cache-from:
412+
- type=registry,ref=${DOCKER_REGISTRY}/${IMAGE_REPO}:cache
413+
driver:
414+
name: container
415+
use: true
416+
create: true
417+
driver: docker-container
417418
```
418419

419420
The first Step will build the Image using a Builder Instance with the `docker-container` driver and push the image cache to the remote registry, as specified by `cache-to`, with additional cache export options being used to export all the layers of intermediate steps with the image manifests. More details cache export options [here](https://github.com/moby/buildkit?tab=readme-ov-file#registry-push-image-and-cache-separately).

0 commit comments

Comments
 (0)