@@ -30,13 +30,37 @@ jobs:
3030 uses : docker/setup-qemu-action@v3
3131 - name : Set up Docker Buildx
3232 uses : docker/setup-buildx-action@v3
33+ - name : Cache Docker layers
34+ uses : actions/cache@v3
35+ with :
36+ path : /tmp/.buildx-cache
37+ key : ${{ runner.os }}-buildx-${{ github.sha }}
38+ restore-keys : |
39+ ${{ runner.os }}-buildx-
3340 - name : Build Docker images
3441 run : |
3542 echo "${{ secrets.GHCR_PAT }}" > github_token
3643 export DOCKER_BUILDKIT=1
37- docker buildx build --builder default --platform linux/arm64 --output type=docker --progress=plain --secret id=github_token,src=github_token -t lambda-shell-runtime:tiny -f tiny.Dockerfile .
38- docker buildx build --builder default --platform linux/arm64 --output type=docker --progress=plain --secret id=github_token,src=github_token -t lambda-shell-runtime:micro -f micro.Dockerfile .
39- docker buildx build --builder default --platform linux/arm64 --output type=docker --progress=plain --secret id=github_token,src=github_token -t lambda-shell-runtime:full -f Dockerfile .
44+ docker buildx build --builder default --platform linux/arm64 \
45+ --output type=docker --progress=plain \
46+ --secret id=github_token,src=github_token \
47+ --cache-from type=local,src=/tmp/.buildx-cache \
48+ --cache-to type=local,dest=/tmp/.buildx-cache \
49+ -t lambda-shell-runtime:tiny -f tiny.Dockerfile .
50+
51+ docker buildx build --builder default --platform linux/arm64 \
52+ --output type=docker --progress=plain \
53+ --secret id=github_token,src=github_token \
54+ --cache-from type=local,src=/tmp/.buildx-cache \
55+ --cache-to type=local,dest=/tmp/.buildx-cache \
56+ -t lambda-shell-runtime:micro -f micro.Dockerfile .
57+
58+ docker buildx build --builder default --platform linux/arm64 \
59+ --output type=docker --progress=plain \
60+ --secret id=github_token,src=github_token \
61+ --cache-from type=local,src=/tmp/.buildx-cache \
62+ --cache-to type=local,dest=/tmp/.buildx-cache \
63+ -t lambda-shell-runtime:full -f Dockerfile .
4064 shell : bash
4165 - name : Log in to GHCR
4266 run : echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u skunxicat --password-stdin
0 commit comments