diff --git a/.github/workflows/docker-manual.yml b/.github/workflows/docker-manual.yml index 8c7f0cdc..cfaa1627 100644 --- a/.github/workflows/docker-manual.yml +++ b/.github/workflows/docker-manual.yml @@ -33,12 +33,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # tag=v2.0.0 - - name: Cache Docker layers - uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # tag=v3.0.4 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} - - run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc - name: Build and push @@ -46,8 +40,8 @@ jobs: with: push: true tags: "${{ env.IMAGE_NAME }}:${{ github.event.inputs.tag }}" - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache + cache-from: type=gha + cache-to: type=gha,mode=max context: . file: ./Dockerfile labels: | diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0e027a49..93d44979 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -55,12 +55,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # tag=v2.0.0 - - name: Cache Docker layers - uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # tag=v3.0.4 - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.event.client_payload.sha }} - - run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc - name: Build and push @@ -68,8 +62,8 @@ jobs: with: push: ${{ env.EVENT != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache + cache-from: type=gha + cache-to: type=gha,mode=max context: . file: ./Dockerfile labels: | diff --git a/.github/workflows/package-audit.yml b/.github/workflows/package-audit.yml index 7933d794..5a7afe77 100644 --- a/.github/workflows/package-audit.yml +++ b/.github/workflows/package-audit.yml @@ -5,10 +5,7 @@ on: paths: - package.json - package-lock.json - pull_request: - paths: - - package.json - - package-lock.json + - .github/workflows/package-audit.yml workflow_dispatch: permissions: