Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
satackey committed Aug 15, 2020
1 parent 6dda587 commit a4aecb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test_readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v2
- run: docker-compose -f test_project/docker-compose.yml -p test_project pull

- uses: satackey/[email protected].5
- uses: satackey/[email protected].6
with:
key: docker-layer-caching-${{ github.workflow }}-${{ github.event_name }}-{hash}
restore-keys: docker-layer-caching-${{ github.workflow }}-${{ github.event_name }}-
Expand All @@ -34,7 +34,7 @@ jobs:
- uses: actions/checkout@v2
- run: docker-compose -f test_project/docker-compose.yml -p test_project pull

- uses: satackey/[email protected].5
- uses: satackey/[email protected].6
with:
key: docker-layer-caching-${{ github.workflow }}-${{ github.event_name }}-{hash}
restore-keys: docker-layer-caching-${{ github.workflow }}-${{ github.event_name }}-
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
# In this step, this action saves a list of existing images,
# the cache is created without them in the post run.
# It also restores the cache if it exists.
- uses: satackey/[email protected].5
- uses: satackey/[email protected].6

- run: docker-compose up --build

# Finally, "Post Run satackey/[email protected].5",
# Finally, "Post Run satackey/[email protected].6",
# which is the process of saving the cache, will be executed.
```

Expand All @@ -61,12 +61,12 @@ jobs:
# In this step, this action saves a list of existing images,
# the cache is created without them in the post run.
# It also restores the cache if it exists.
- uses: satackey/[email protected].5
- uses: satackey/[email protected].6

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

# Finally, "Post Run satackey/[email protected].5",
# Finally, "Post Run satackey/[email protected].6",
# which is the process of saving the cache, will be executed.
```

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

```yaml
- uses: satackey/[email protected].5
- uses: satackey/[email protected].6
with:
key: foo-docker-cache-{hash}
restore-keys: |
Expand Down

0 comments on commit a4aecb7

Please sign in to comment.