v0.3.5 #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Offline ARM64 | |
| on: | |
| release: | |
| types: [created] | |
| jobs: | |
| build: | |
| name: Build offline Docker image for ARM64 | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Free up disk space | |
| run: | | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /usr/local/lib/android | |
| sudo rm -rf /opt/ghc | |
| sudo rm -rf /opt/hostedtoolcache/CodeQL | |
| docker system prune -af | |
| - 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 offline ARM64 image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: Dockerfile.offline | |
| push: true | |
| platforms: linux/arm64 | |
| provenance: false | |
| tags: | | |
| ghcr.io/${{ github.repository }}:${{ steps.version.outputs.VERSION }}-offline-arm64 | |
| ghcr.io/${{ github.repository }}:latest-offline-arm64 | |
| labels: | | |
| org.opencontainers.image.source=https://github.com/${{ github.repository }} | |
| org.opencontainers.image.description=OptiLLM offline image with pre-downloaded models for fully offline operation (ARM64) | |
| org.opencontainers.image.licenses=Apache-2.0 | |
| org.opencontainers.image.version=${{ steps.version.outputs.VERSION }} | |
| cache-from: type=gha,scope=offline-arm64 | |
| cache-to: type=gha,scope=offline-arm64,mode=max |