Merge pull request 'dev-v0.7.x' (#20) from dev-v0.7.x into main
All checks were successful
Build and Publish Docker Image / build (amd64, linux/amd64, docker-amd64) (push) Successful in 1m7s
Build and Publish Docker Image / build (arm64, linux/arm64, docker-arm64) (push) Successful in 11m34s
Build and Publish Docker Image / merge (push) Successful in 36s
Build and Publish Docker Image (Semantic Cache) / build (amd64, linux/amd64, docker-amd64) (push) Successful in 35s
Build and Publish Docker Image (Semantic Cache) / build (arm64, linux/arm64, docker-arm64) (push) Successful in 14m38s
Build and Publish Docker Image (Semantic Cache) / merge (push) Successful in 47s

Reviewed-on: https://bitfreedom.net/code/code/nomyo-ai/nomyo-router/pulls/20
This commit is contained in:
Alpha Nerd 2026-04-07 17:56:32 +02:00
commit 0bf91a6dd0
3 changed files with 7 additions and 21 deletions

View file

@ -133,6 +133,8 @@ jobs:
uses: https://github.com/docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=false
tags: |
type=semver,pattern={{version}}-semantic
type=semver,pattern={{major}}.{{minor}}-semantic
@ -146,12 +148,3 @@ jobs:
${{ env.REGISTRY }}/${{ env.CACHE_IMAGE }}:platform-semantic-amd64 \
${{ env.REGISTRY }}/${{ env.CACHE_IMAGE }}:platform-semantic-arm64
- name: Delete intermediate platform tags
run: |
CACHE_ENCODED=$(echo "${{ env.CACHE_IMAGE }}" | sed 's|/|%2F|g')
for tag in platform-semantic-amd64 platform-semantic-arm64; do
curl -s -X DELETE \
-H "Authorization: token ${{ secrets.REGISTRY_TOKEN }}" \
"https://${{ env.REGISTRY }}/api/v1/packages/${{ github.repository_owner }}/container/${CACHE_ENCODED}/${tag}" \
&& echo "Deleted ${tag}" || echo "Failed to delete ${tag} (ignored)"
done

View file

@ -94,7 +94,7 @@ jobs:
- name: Install Docker
run: |
apt-get update -qq
apt-get install -y -qq docker.io jq curl
apt-get install -y -qq docker.io jq
- name: Start Docker daemon
run: |
@ -123,6 +123,8 @@ jobs:
uses: https://github.com/docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=false
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
@ -136,12 +138,3 @@ jobs:
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:platform-amd64 \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:platform-arm64
- name: Delete intermediate platform tags
run: |
IMAGE_ENCODED=$(echo "${{ env.IMAGE_NAME }}" | sed 's|/|%2F|g')
for tag in platform-amd64 platform-arm64; do
curl -s -X DELETE \
-H "Authorization: token ${{ secrets.REGISTRY_TOKEN }}" \
"https://${{ env.REGISTRY }}/api/v1/packages/${{ github.repository_owner }}/container/${IMAGE_ENCODED}/${tag}" \
&& echo "Deleted ${tag}" || echo "Failed to delete ${tag} (ignored)"
done

View file

@ -80,14 +80,14 @@ Pre-built multi-arch images (`linux/amd64`, `linux/arm64`) are published automat
```sh
docker pull bitfreedom.net/nomyo-ai/nomyo-router:latest
docker pull bitfreedom.net/nomyo-ai/nomyo-router:v0.7.0
docker pull bitfreedom.net/nomyo-ai/nomyo-router:0.7
```
**Semantic image** (semantic cache with `all-MiniLM-L6-v2` pre-baked, ~800 MB):
```sh
docker pull bitfreedom.net/nomyo-ai/nomyo-router:latest-semantic
docker pull bitfreedom.net/nomyo-ai/nomyo-router:0.7.0-semantic
docker pull bitfreedom.net/nomyo-ai/nomyo-router:0.7-semantic
```
### Build the container image locally