Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ jobs:
type=semver,pattern={{major}}
- name: Build and push
uses: docker/bake-action@v6
env:
# Pin aqora to the release version only for tag builds; non-tag
# builds (main/PR/merge_group/dispatch) install the latest release.
AQORA_VERSION: ${{ startsWith(github.ref, 'refs/tags/') && steps.meta-kubimo.outputs.version || '' }}
with:
set: |
kubimo*.cache-from=type=registry,ref=ghcr.io/aqora-io/cli-kubimo:latest
Expand Down
10 changes: 10 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,20 @@ group "default" {
targets = ["kubimo"]
}

# Pin for the aqora PyPI package. Empty installs the latest published release;
# set from the env var of the same name (see the Release workflow, which only
# populates it for semver tag builds).
variable "AQORA_VERSION" {
default = ""
}

target "docker-metadata-kubimo" {}

target "kubimo" {
inherits = ["docker-metadata-kubimo"]
context = "."
dockerfile = "docker/Dockerfile.kubimo"
args = {
AQORA_VERSION = AQORA_VERSION
}
}
7 changes: 5 additions & 2 deletions docker/Dockerfile.kubimo
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ ARG KUBIMO_MARIMO_IMAGE=ghcr.io/aqora-io/kubimo-marimo:0.1.23

FROM ${KUBIMO_MARIMO_IMAGE}

ARG AQORA_VERSION=0.25.0
# Optional pin for the aqora PyPI package. Empty installs the latest published
# release (local dev + non-tag CI builds); tagged releases pass the exact
# version via the AQORA_VERSION bake variable in docker-bake.hcl.
ARG AQORA_VERSION=
USER root
RUN --mount=type=cache,target=/root/.cache/uv,sharing=locked \
--mount=type=cache,target=/root/.local/share/uv/python,sharing=locked \
uv pip install --system "aqora==${AQORA_VERSION}"
uv pip install --system "aqora${AQORA_VERSION:+==${AQORA_VERSION}}"

USER me
WORKDIR /home/me/workspace
Expand Down
Loading