Skip to content

v0.3.4

v0.3.4 #18

name: Docker Full AMD64
on:
release:
types: [created]
jobs:
build:
name: Build full Docker image for AMD64
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- 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 full AMD64 image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
platforms: linux/amd64
provenance: false
tags: |
ghcr.io/${{ github.repository }}:${{ steps.version.outputs.VERSION }}-amd64
ghcr.io/${{ github.repository }}:latest-amd64
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.description=OptiLLM full image with model serving and API routing capabilities (AMD64)
org.opencontainers.image.licenses=Apache-2.0
org.opencontainers.image.version=${{ steps.version.outputs.VERSION }}
cache-from: type=gha,scope=full-amd64
cache-to: type=gha,scope=full-amd64,mode=max