-
Notifications
You must be signed in to change notification settings - Fork 264
55 lines (49 loc) · 1.8 KB
/
publish-docker-proxy-arm64.yml
File metadata and controls
55 lines (49 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Docker Proxy ARM64
on:
release:
types: [created]
jobs:
build:
name: Build proxy Docker image for ARM64
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract version from tag
id: version
run: |
VERSION=${GITHUB_REF#refs/tags/}
if [ -z "$VERSION" ] || [ "$VERSION" = "$GITHUB_REF" ]; then
VERSION="latest"
fi
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Build and push proxy ARM64 image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.proxy_only
push: true
platforms: linux/arm64
provenance: false
tags: |
ghcr.io/${{ github.repository }}:${{ steps.version.outputs.VERSION }}-proxy-arm64
ghcr.io/${{ github.repository }}:latest-proxy-arm64
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.description=OptiLLM proxy-only image for API routing without model serving capabilities (ARM64)
org.opencontainers.image.licenses=Apache-2.0
org.opencontainers.image.version=${{ steps.version.outputs.VERSION }}
cache-from: type=gha,scope=proxy-arm64
cache-to: type=gha,scope=proxy-arm64,mode=max