Skip to content

Commit 3e4c662

Browse files
authored
Update README.md
1 parent 24947fb commit 3e4c662

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ You can run `docker build` and `docker-compose build` in your GitHub Actions wor
77
This GitHub Action uses the [docker save](https://docs.docker.com/engine/reference/commandline/save/) / [docker load](https://docs.docker.com/engine/reference/commandline/load/) command and the [@actions/cache](https://www.npmjs.com/package/@actions/cache) library.
88

99

10-
## Example workflow
10+
## Example workflows
1111

1212
### Docker Compose
1313
```yaml
1414
name: CI
15+
1516
on: push
1617

1718
jobs:
@@ -28,11 +29,11 @@ jobs:
2829
# In this step, this action saves a list of existing images,
2930
# the cache is created without them in the post run.
3031
# It also restores the cache if it exists.
31-
- uses: satackey/action-docker-layer-caching@v0.0
32+
- uses: satackey/action-docker-layer-caching@v0.0.3
3233

3334
- run: docker-compose up --build
3435

35-
# Finally, "Post Run satackey/action-docker-layer-caching@v0.0",
36+
# Finally, "Post Run satackey/action-docker-layer-caching@v0.0.3",
3637
# which is the process of saving the cache, will be executed.
3738
```
3839

@@ -54,12 +55,12 @@ jobs:
5455
# In this step, this action saves a list of existing images,
5556
# the cache is created without them in the post run.
5657
# It also restores the cache if it exists.
57-
- uses: satackey/action-docker-layer-caching@v0.0
58+
- uses: satackey/action-docker-layer-caching@v0.0.3
5859

5960
- name: Build the Docker image
6061
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
6162

62-
# Finally, "Post Run satackey/action-docker-layer-caching@v0.0",
63+
# Finally, "Post Run satackey/action-docker-layer-caching@v0.0.3",
6364
# which is the process of saving the cache, will be executed.
6465
```
6566

@@ -72,7 +73,7 @@ By default, the cache is separated by the workflow name.
7273
You can also set the cache key manually, like the official [actions/cache](https://github.com/actions/cache#usage) action.
7374

7475
```yaml
75-
- uses: satackey/action-docker-layer-caching@v0.0
76+
- uses: satackey/action-docker-layer-caching@v0.0.3
7677
with:
7778
key: foo-docker-cache-{hash}
7879
restore-keys: |

0 commit comments

Comments
 (0)