Skip to content

Try using matrix in rocm workflow instead of env #3

Try using matrix in rocm workflow instead of env

Try using matrix in rocm workflow instead of env #3

Workflow file for this run

name: Dockerize
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/dockerize.yml'
- 'docker/rocm.Dockerfile'
permissions:
packages: write
jobs:
rocm:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
version: [b4600]

Check failure on line 15 in .github/workflows/dockerize.yml

View workflow run for this annotation

GitHub Actions / Dockerize

Invalid workflow file

The workflow is not valid. .github/workflows/dockerize.yml (Line: 15, Col: 7): Unexpected value 'version'
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Free Disk Space (Ubuntu)
uses: ggml-org/[email protected]
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- name: Build and push server Docker image (tagged + versioned)
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64
tags: |
ghcr.io/${{ github.repository }}:server-rocm-${{ matrix.version }}
file: docker/rocm.Dockerfile
target: server
build-args: |
LLAMACPP_VERSION=${{ matrix.version }}
provenance: false
cache-from: type=gha
cache-to: type=gha,mode=max