File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 5656 EOF
5757 echo "Created dummy kubeconfig for CI"
5858
59+ - name : Pre-pull base images in parallel
60+ run : |
61+ echo "Pre-pulling base images to speed up builds..."
62+ docker pull python:3.12-slim &
63+ docker pull alpine:latest &
64+ docker pull confluentinc/cp-kafka:7.5.0 &
65+ docker pull confluentinc/cp-zookeeper:7.5.0 &
66+ docker pull mongo:7 &
67+ docker pull redis:7-alpine &
68+ wait
69+ echo "Base images pulled successfully"
70+
5971 - name : Modify Docker Compose for CI
6072 run : |
6173 cp docker-compose.yaml docker-compose.ci.yaml
@@ -97,15 +109,17 @@ jobs:
97109 cat docker-compose.ci.yaml
98110 echo "------------------------------------"
99111
100- - name : Build services with cache
112+ - name : Build services with optimized cache
101113 uses : docker/bake-action@v6
102114 with :
103115 source : .
104116 files : docker-compose.ci.yaml
105117 load : true
106118 set : |
107- *.cache-from=type=gha
108- *.cache-to=type=gha,mode=max
119+ *.cache-from=type=gha,scope=buildkit-${{ github.repository }}-${{ github.ref_name }}
120+ *.cache-from=type=gha,scope=buildkit-${{ github.repository }}-main
121+ *.cache-to=type=gha,mode=max,scope=buildkit-${{ github.repository }}-${{ github.ref_name }}
122+ *.pull=true
109123
110124 - name : Start services
111125 run : |
You can’t perform that action at this time.
0 commit comments