Skip to content

Commit f3f38d7

Browse files
author
Tsotne Tabidze
committed
Create cache directory manually during github action cache miss
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
1 parent 9217146 commit f3f38d7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/master_only.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- name: Handle Cache Miss (pull public ECR image & save it to tar file)
3636
if: steps.cache-primes.outputs.cache-hit != 'true'
3737
run: |
38+
mkdir -p ~/cache
3839
docker pull public.ecr.aws/lambda/python:3.9
3940
docker save public.ecr.aws/lambda/python:3.9 -o ~/cache/lambda_python_3_9.tar
4041
- name: Handle Cache Hit (load docker image from tar file)

.github/workflows/pr_integration_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
- name: Handle Cache Miss (pull public ECR image & save it to tar file)
5252
if: steps.cache-primes.outputs.cache-hit != 'true'
5353
run: |
54+
mkdir -p ~/cache
5455
docker pull public.ecr.aws/lambda/python:3.9
5556
docker save public.ecr.aws/lambda/python:3.9 -o ~/cache/lambda_python_3_9.tar
5657
- name: Handle Cache Hit (load docker image from tar file)

0 commit comments

Comments
 (0)