-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use hash key for docker layer computed from Dockerfile (#1691)
* Use hash for docker layer * Remove `layer-` prefix. it gets added by action automatically * Add requirements file to docker key hash
- Loading branch information
1 parent
1667568
commit 3e8d719
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,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: jpribyl/[email protected] | ||
- name: Docker layer cache | ||
uses: jpribyl/[email protected] | ||
with: | ||
key: docker-layer-caching-migraphx-${{hashFiles('hip-clang.docker', '**/*requirements.txt', '**/install_prereqs.sh', 'rbuild.ini')}} | ||
restore-keys: | ||
docker-layer-caching-migraphx- | ||
# Ignore the failure of a step and avoid terminating the job. | ||
continue-on-error: true | ||
|
||
|
@@ -91,7 +96,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: jpribyl/[email protected] | ||
- name: Docker layer cache | ||
uses: jpribyl/[email protected] | ||
with: | ||
key: docker-layer-caching-migraphx-${{hashFiles('hip-clang.docker', '**/*requirements.txt', '**/install_prereqs.sh', 'rbuild.ini')}} | ||
restore-keys: | ||
docker-layer-caching-migraphx- | ||
# Ignore the failure of a step and avoid terminating the job. | ||
continue-on-error: true | ||
|
||
|
@@ -148,7 +158,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: jpribyl/[email protected] | ||
- name: Docker layer cache | ||
uses: jpribyl/[email protected] | ||
with: | ||
key: docker-layer-caching-migraphx-${{hashFiles('hip-clang.docker', '**/*requirements.txt', '**/install_prereqs.sh', 'rbuild.ini')}} | ||
restore-keys: | ||
docker-layer-caching-migraphx- | ||
# Ignore the failure of a step and avoid terminating the job. | ||
continue-on-error: true | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters