Skip to content

Commit

Permalink
Only use deployed assets cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rahearn committed Jan 3, 2025
1 parent 9dda463 commit 3cec360
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-languages
- name: Restore asset cache
- name: Asset cache
uses: actions/cache@v4
with:
key: staging-assets-deployed-${{ github.sha }}
restore-keys: staging-assets-deployed-
key: staging-assets-deployed
path: |
public/assets
app/assets/builds
Expand Down Expand Up @@ -77,4 +76,4 @@ jobs:
name: app-src-apply
path: terraform/dist/src.zip
compression-level: 0
retention-days: 2
retention-days: 1
7 changes: 3 additions & 4 deletions .github/workflows/terraform-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ jobs:

- uses: ./.github/actions/setup-languages
- name: Restore asset cache
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
key: staging-assets-build-${{ github.event.number }}
restore-keys: staging-assets-deployed-
key: staging-assets-deployed
path: |
public/assets
app/assets/builds
Expand Down Expand Up @@ -70,4 +69,4 @@ jobs:
name: app-src-plan
path: terraform/dist/src.zip
compression-level: 0
retention-days: 2
retention-days: 1

0 comments on commit 3cec360

Please sign in to comment.