Skip to content

Commit 464668f

Browse files
authored
ci: enable docker cache (#441)
1 parent 0dc4ef5 commit 464668f

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/publish_devel_image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
context: ./docker
5050
file: ./docker/Dockerfile.devel
5151
push: ${{ inputs.push || 'true' }}
52-
cache-from: type=local,src=$CI_CACHE_DIR/.buildx-cache
53-
cache-to: type=local,dest=$CI_CACHE_DIR/.buildx-cache
52+
cache-from: type=registry,ref=vectorchai/scalellm_devel:buildcache
53+
cache-to: type=registry,ref=vectorchai/scalellm_devel:buildcache,mode=max
5454
build-args: |
5555
UBUNTU_VERSION=22.04
5656
CUDA_VERSION=${{ matrix.cuda }}

.github/workflows/publish_manylinux_2_28_image.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,14 @@ jobs:
4343
username: ${{ secrets.DOCKER_HUB_USER }}
4444
password: ${{ secrets.DOCKER_HUB_TOKEN }}
4545

46-
- name: Create cache directory
47-
run: mkdir -p $CI_CACHE_DIR/.buildx-cache
48-
4946
- name: Build base for cuda ${{ matrix.cuda }}
5047
uses: docker/build-push-action@v5
5148
with:
5249
context: ./docker
5350
file: ./docker/Dockerfile.manylinux2_28
5451
push: ${{ inputs.push || 'true' }}
55-
cache-from: type=local,src=$CI_CACHE_DIR/.buildx-cache
56-
cache-to: type=local,dest=$CI_CACHE_DIR/.buildx-cache
52+
cache-from: type=registry,ref=vectorchai/scalellm_manylinux2_28:buildcache
53+
cache-to: type=registry,ref=vectorchai/scalellm_manylinux2_28:buildcache,mode=max
5754
build-args: |
5855
CUDA_VERSION=${{ matrix.cuda }}
5956
tags: |

0 commit comments

Comments
 (0)