diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index e140eb0..d3c3038 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -72,6 +72,8 @@ jobs: platforms: linux/${{ matrix.platform }} load: true tags: ${{ env.IMAGE_NAME }}-${{ env.LATEST_VERSION }} + cache-from: type=gha + cache-to: type=gha,mode=max - name: Test Image run: docker run --rm ${{ env.IMAGE_NAME }}-${{ env.LATEST_VERSION }} -e "console.log('Hello from Node.js ' + process.version)" diff --git a/.github/workflows/update-current-image.yml b/.github/workflows/update-current-image.yml index a4aa92e..e8e49bc 100644 --- a/.github/workflows/update-current-image.yml +++ b/.github/workflows/update-current-image.yml @@ -117,6 +117,8 @@ jobs: platforms: linux/${{ matrix.platform }} load: true tags: ${{ env.IMAGE_NAME }}-${{ needs.check_version.outputs.NODE_VERSION }} + cache-from: type=gha + cache-to: type=gha,mode=max - name: Test Image run: docker run --rm ${{ env.IMAGE_NAME }}-${{ needs.check_version.outputs.NODE_VERSION }} -e "console.log('Hello from Node.js ' + process.version)" @@ -142,3 +144,5 @@ jobs: sbom: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max