Skip to content

Commit

Permalink
fix(docker/k8s): Fix image naming
Browse files Browse the repository at this point in the history
We had previously hack with hardcoding ghcr.io.
Now we make it more flexible, so people can set their own
image url, and our staging instance automatically add staging-
prefix in appropriate place.

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Oct 14, 2024
1 parent ed2c354 commit 1e57458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/runtime/base/kubernetes.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:

containers:
- name: kernelci
image: ghcr.io/{{ runtime_image }}
image: {{ runtime_image }}
imagePullPolicy: Always

volumeMounts:
Expand Down
1 change: 1 addition & 0 deletions kernelci/runtime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def get_params(self, job, api_config=None):
if not device_dtb:
print(f"dtb file {job.platform_config.dtb} not found!")
return None

params = {
'api_config': api_config or {},
'storage_config': job.storage_config or {},
Expand Down

0 comments on commit 1e57458

Please sign in to comment.