Skip to content

Commit

Permalink
readme changed
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanoFresh committed Aug 17, 2021
1 parent a550f91 commit ab24e59
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ Decrease build time of docker compose inside GitHub Actions using layers cache.

## Description

* `.github/workflows/not-cached.yml` uses `./docker-compose.ci.not-cached.yml`
* `.github/workflows/not-cached.yml` uses `./docker-compose.ci.not-cached.yml`. Push to ghcr.io using the `:not-cached`
tag to avoid collisions
* `.github/workflows/cached.yml` uses `./docker-compose.yml`. Caching achieved by:
* ENV variables `DOCKER_BUILDKIT` and `COMPOSE_DOCKER_CLI_BUILD`
* docker/setup-buildx-action
* --build-arg BUILDKIT_INLINE_CACHE=1
* `cache_from` inside docker-compose file:
```yml
build:
context: ./app1
cache_from:
- ghcr.io/cyanofresh/docker-compose-ga-cache-example_app1
```
* ENV variables `DOCKER_BUILDKIT` and `COMPOSE_DOCKER_CLI_BUILD`
* docker/setup-buildx-action
* --build-arg BUILDKIT_INLINE_CACHE=1
* `cache_from` inside docker-compose file:
```yml
build:
context: ./app1
cache_from:
- ghcr.io/cyanofresh/docker-compose-ga-cache-example_app1
```

0 comments on commit ab24e59

Please sign in to comment.