Skip to content

Commit

Permalink
initial commit of s3 caching
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch authored and felippeb committed Mar 18, 2024
1 parent 761670c commit 28a8a1f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/actions/cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,13 @@ runs:
- name: Cache Deps Onedir Package Directory
if: ${{ env.USE_S3_CACHE == 'true' }}
id: s3-cache
env:
RUNS_ON_S3_BUCKET_CACHE: salt-project-${{ env.SPB_ENVIRONMENT}}-salt-github-actions-s3-cache
AWS_REGION: ${{ env.AWS_REGION }}
uses: runs-on/cache@v4
uses: tespkg/actions-cache@v1
with:
region: us-west-2
bucket: salt-project-${{ env.SPB_ENVIRONMENT}}-salt-github-actions-s3-cache
path: ${{ inputs.path }}
key: ${{ inputs.key }}
restore-keys: ${{ inputs.restore-keys }}
upload-chunk-size: ${{ inputs.upload-chunk-size }}
enableCrossOsArchive: ${{ inputs.enableCrossOsArchive }}
fail-on-cache-miss: ${{ inputs.fail-on-cache-miss }}
lookup-only: ${{ inputs.lookup-only }}
save-always: ${{ inputs.save-always }}

- name: Cache Deps Onedir Package Directory
if: ${{ env.USE_S3_CACHE != 'true' }}
Expand Down

0 comments on commit 28a8a1f

Please sign in to comment.