Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

fix(docker): point :latest at the newest release instead of main (#679)

Tashfeenea340f7acd66
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index ff3c56b9..00ec12ec 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -114,7 +114,15 @@ jobs:
type=ref,event=branch
type=ref,event=tag
type=sha,prefix=sha-
- type=raw,value=latest,enable={{is_default_branch}}
+ # `latest` must follow the newest RELEASE, not main. This workflow runs
+ # on both main pushes and v* tags, so `{{is_default_branch}}` attached
+ # `latest` to every main build and `docker pull ...:latest` served
+ # unreleased code — the opposite of what the tag conventionally means,
+ # and what sent people to pin `v0.6.5` by hand (discussion #533).
+ # Prereleases (v1.2.3-rc1) are excluded so `latest` stays on stable.
+ # Main builds keep their `main` and `sha-` tags, so anything tracking
+ # the development stream is unaffected.
+ type=raw,value=latest,enable=${{ github.ref_type == 'tag' && !contains(github.ref_name, '-') }}
- name: Create manifest list and push
working-directory: ${{ runner.temp }}/digests