Commit 9d34be8
refactor: switch Ollama install to Docker service container
Replace the manual install+start steps with a service container so
Dependabot's github-actions ecosystem can automatically keep the
ollama/ollama image version up to date.
Changes:
- Add services.ollama block (ollama/ollama:0.23.4) with bind-mount
/home/runner/.ollama -> /root/.ollama so the actions/cache model
cache is visible inside the running container
- Remove 'Install Ollama' step (no longer needed)
- Rename 'Start Ollama' step to 'Ensure Ollama model is available';
Ollama is already running as a service so we only need to wait for
readiness and pull the model via the REST API if not cached
Caching still works: actions/cache restores blobs to the bind-mounted
host path after the service starts; because it is a live bind mount the
files are immediately visible inside the container. The pull call is a
no-op when the blobs already exist.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 10fb004 commit 9d34be8
1 file changed
Lines changed: 18 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
179 | 186 | | |
180 | 187 | | |
181 | 188 | | |
| |||
254 | 261 | | |
255 | 262 | | |
256 | 263 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
| 264 | + | |
269 | 265 | | |
270 | 266 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 267 | + | |
274 | 268 | | |
275 | 269 | | |
276 | 270 | | |
| |||
279 | 273 | | |
280 | 274 | | |
281 | 275 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
286 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
287 | 286 | | |
288 | 287 | | |
289 | 288 | | |
| |||
0 commit comments