diff --git a/.github/workflows/dockerx-latest.yml b/.github/workflows/dockerx-latest.yml index c1577a6..120bd15 100644 --- a/.github/workflows/dockerx-latest.yml +++ b/.github/workflows/dockerx-latest.yml @@ -34,6 +34,15 @@ jobs: #with: # install: true + - name: Cache Docker layers + uses: actions/cache@v4 + id: cache + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + - name: Inspect builder run: | echo "Name: ${{ steps.buildx.outputs.name }}" @@ -63,19 +72,10 @@ jobs: --build-arg VERSION=${VERSION} \ --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \ --build-arg VCS_REF=${GITHUB_SHA::8} \ - #--cache-from "type=local,src=/tmp/.buildx-cache" \ - #--cache-to "type=local,dest=/tmp/.buildx-cache" \ + --cache-from "type=local,src=/tmp/.buildx-cache" \ + --cache-to "type=local,dest=/tmp/.buildx-cache" \ ${TAGS} --file Dockerfile . - #- name: Cache Docker layers - # uses: actions/cache@v4 - # id: cache - # with: - # path: /tmp/.buildx-cache - # key: ${{ runner.os }}-buildx-${{ github.sha }} - # restore-keys: | - # ${{ runner.os }}-buildx- - - name: Login to DockerHub Registry run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin