Skip to content

Commit

Permalink
[ci][chore] Fix cache keys (#1291)
Browse files Browse the repository at this point in the history
* [ci][chore] Fix cache keys

* Fix indent in generator script

* hashFiles with path

* add forgotten plugins

* cleanup posthog

Co-authored-by: Lukas Lösche <[email protected]>
Co-authored-by: Matthias Veit <[email protected]>
  • Loading branch information
3 people authored Nov 21, 2022
1 parent 5bad435 commit 9557ea7
Show file tree
Hide file tree
Showing 40 changed files with 223 additions and 152 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/aws/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_aws_k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/aws_k8s/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_cleanup_aws_alarms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/cleanup_aws_alarms/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/cleanup_aws_loadbalancers/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_cleanup_aws_vpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/cleanup_aws_vpcs/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_cleanup_expired.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/cleanup_expired/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_cleanup_untagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/cleanup_untagged/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_cleanup_volumes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/cleanup_volumes/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_digitalocean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/digitalocean/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_digitalocean_k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/digitalocean_k8s/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/dockerhub/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_example_collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/example_collector/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/gcp/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/github/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/k8s/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_pr_plugin_onelogin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
tags:
- "*.*.*"
branches:
- main
- main
pull_request:
paths:
- 'resotolib/**'
Expand All @@ -29,12 +29,12 @@ jobs:
architecture: 'x64'

- name: Restore dependency cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: $\{\{runner.os}}-pip-$\{\{hashFiles('setup.py')}}
key: ${{runner.os}}-pip-${{hashFiles('./plugins/onelogin/requirements.txt')}}
restore-keys: |
$\{\{ runner.os }}-pip-
${{runner.os}}-pip-
- name: Install Dependencies
run: |
Expand Down
Loading

0 comments on commit 9557ea7

Please sign in to comment.