Files
ik_llama.cpp/docker-bake.hcl
Yadir Hernandez Batista 8df5cbc0b3 Fix Build and Push Container Image (#1633)
* fix: Updating cleanup step

* fix: Updated trigger for build-container

* fix: Unset token for cleanup step

* fix: Set build-container cleanup step without run-dry

* fix: Removed 100 commits from checkout actions

* fix: Enable the whole history

* test: Suggestion from mcm007 on build-container

* fix: add token to package cleanup step

Explicitly pass GITHUB_TOKEN to the delete-package-versions action to ensure it has sufficient authorization for package deletion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: - Error: delete version API failed. Package not found.

* fix: Deleted LLAMA_COMMIT from build

* fix: Removed id-token permission

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 11:24:19 +02:00

56 lines
1.4 KiB
HCL

variable "REPO_OWNER" { default = "local" }
variable "VARIANT" { default = "cpu" }
variable "BUILD_NUMBER" { default = "0" }
variable "CUDA_VERSION" {}
variable "CUDA_DOCKER_ARCH" { default = "86;90" }
variable "USE_CCACHE" { default = "true" }
variable "GGML_NATIVE" { default = "ON" }
# Common cache configuration for GitHub Actions
target "cache_settings" {
cache-from = ["type=gha,scope=ccache-${VARIANT}"]
cache-to = ["type=gha,mode=max,scope=ccache-${VARIANT}"]
}
group "default" {
targets = ["server", "full", "swap"]
}
target "settings" {
context = "."
inherits = ["cache_settings"]
args = {
BUILD_NUMBER = "${BUILD_NUMBER}"
CUDA_VERSION = "${CUDA_VERSION}"
CUDA_DOCKER_ARCH = "${CUDA_DOCKER_ARCH}"
GGML_NATIVE = "${GGML_NATIVE}"
USE_CCACHE = "${USE_CCACHE}"
}
}
target "server" {
inherits = ["settings"]
target = "server"
tags = [
"ghcr.io/${REPO_OWNER}/ik-llama-cpp:${VARIANT}-server-${BUILD_NUMBER}",
"ghcr.io/${REPO_OWNER}/ik-llama-cpp:${VARIANT}-server"
]
}
target "full" {
inherits = ["settings"]
target = "full"
tags = [
"ghcr.io/${REPO_OWNER}/ik-llama-cpp:${VARIANT}-full-${BUILD_NUMBER}",
"ghcr.io/${REPO_OWNER}/ik-llama-cpp:${VARIANT}-full"
]
}
target "swap" {
inherits = ["settings"]
target = "swap"
tags = [
"ghcr.io/${REPO_OWNER}/ik-llama-cpp:${VARIANT}-swap-${BUILD_NUMBER}",
"ghcr.io/${REPO_OWNER}/ik-llama-cpp:${VARIANT}-swap"
]
}