diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 580aeb4..a9e41c0 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -33,8 +33,8 @@ jobs: ${{ secrets.DOCKER_HUB_USERNAME }}/streamcap:${{ github.sha }} ${{ github.ref == 'refs/heads/main' && format('{0}/streamcap:edge', secrets.DOCKER_HUB_USERNAME) || '' }} ${{ startsWith(github.ref, 'refs/tags/') && format('{0}/streamcap:{1}', secrets.DOCKER_HUB_USERNAME, github.ref_name) || '' }} - cache-from: type=gha - cache-to: type=gha,mode=max + cache-from: type=gha,scope=${{ github.ref }} + cache-to: type=gha,scope=${{ github.ref }},mode=max - name: Notify build status if: always() @@ -50,4 +50,4 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, body: message - }) \ No newline at end of file + })