Files
llama.cpp-rocm/.github/workflows/build-rocm.yml
T
ClaudeBot 5a1dd90fe6
Build Actions Cache / ubuntu-24-vulkan-cache (push) Has been cancelled
Build Actions Cache / ubuntu-24-openvino-cache (push) Has been cancelled
Build Actions Cache / windows-2022-rocm-cache (push) Has been cancelled
Build ROCm Server Image / build-rocm-server (push) Failing after 1h29m20s
EditorConfig Checker / editorconfig (push) Has been cancelled
ci: use REGISTRY_TOKEN secret for docker login
2026-04-12 19:54:32 +02:00

47 lines
1.4 KiB
YAML

name: Build ROCm Server Image
on:
workflow_dispatch:
push:
paths:
- '.devops/rocm.Dockerfile'
- '.github/workflows/build-rocm.yml'
permissions:
contents: read
packages: write
jobs:
build-rocm-server:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Determine build tag
id: tag
run: |
# Use short commit hash as build number (matches upstream bXXXX convention)
BUILD_NUM="b$(git rev-list --count HEAD)"
echo "build_num=${BUILD_NUM}" >> $GITHUB_OUTPUT
echo "Build number: ${BUILD_NUM}"
- name: Log in to Gitea Container Registry
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.wylab.me -u wylab --password-stdin
- name: Build server-rocm image
run: |
docker build \
--target server \
--build-arg ROCM_DOCKER_ARCH='gfx1100;gfx1101;gfx1102' \
-f .devops/rocm.Dockerfile \
-t git.wylab.me/wylab/llama.cpp:server-rocm-${{ steps.tag.outputs.build_num }} \
-t git.wylab.me/wylab/llama.cpp:server-rocm \
.
- name: Push images
run: |
docker push git.wylab.me/wylab/llama.cpp:server-rocm-${{ steps.tag.outputs.build_num }}
docker push git.wylab.me/wylab/llama.cpp:server-rocm