chore: add cache docker layers step to docker.yaml (#189)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
9ad2f930bd
commit
afab1ac097
|
|
@ -43,6 +43,14 @@ jobs:
|
||||||
- name: Setup Docker Buildx
|
- name: Setup Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Cache Docker layers
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: /tmp/.buildx-cache
|
||||||
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-buildx-
|
||||||
|
|
||||||
- name: Login Docker Hub
|
- name: Login Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -72,3 +80,5 @@ jobs:
|
||||||
dragonflyoss/client:${{ steps.get_version.outputs.VERSION }}
|
dragonflyoss/client:${{ steps.get_version.outputs.VERSION }}
|
||||||
ghcr.io/${{ env.IMAGE_REPOSITORY }}:${{ steps.get_version.outputs.VERSION }}
|
ghcr.io/${{ env.IMAGE_REPOSITORY }}:${{ steps.get_version.outputs.VERSION }}
|
||||||
push: true
|
push: true
|
||||||
|
cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
|
cache-to: type=local,dest=/tmp/.buildx-cache-new
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue