Skip to content

Commit

Permalink
ci: use caches
Browse files Browse the repository at this point in the history
This might be reverted later if the workflow execution time doesn't improve a little
  • Loading branch information
ferferga committed Sep 20, 2024
1 parent d6d5514 commit 70f092c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/__package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
with:
node-version: 20
check-latest: true
cache: 'npm'

- name: Install npm dependencies 📦
run: npm ci --no-audit
Expand Down Expand Up @@ -182,8 +183,11 @@ jobs:
context: .
file: packaging/docker/Dockerfile
platforms: ${{ format('linux/{0}', matrix.platform) }}
no-cache: true
cache-to: type=local,mode=min,dest=/tmp/${{ env.REGISTRY_IMAGE }}/cache/${{ matrix.platform }}
cache-from: |
type=gha,scope=buildx-${{ matrix.platform }}
cache-to: |
type=local,mode=min,dest=/tmp/${{ env.REGISTRY_IMAGE }}/cache/${{ matrix.platform }}
type=gha,mode=min,ignore-error=true,scope=buildx-${{ matrix.platform }}
outputs: type=docker,dest=docker_image.tar
build-args: |
${{ inputs.commit == '' && 'IS_STABLE=1' || '' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/__quality_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
with:
node-version: 20
check-latest: true
cache: 'npm'

- name: Install dependencies 📦
run: npm ci --no-audit
Expand Down

0 comments on commit 70f092c

Please sign in to comment.