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
3 changes: 3 additions & 0 deletions .github/docker-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tgagor/gemini-cli:v0.45": "sha256:8523945cd03885973abdb90fa9bf6232c523add8a5c6a6386b87a07e441f4a4e"
}
31 changes: 31 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"pinDigests": true,
"packageRules": [
{
"matchPackageNames": ["ghcr.io/hassio-addons/**", "lscr.io/linuxserver/**"],
"groupName": "base images",
"groupSlug": "base-images",
"schedule": ["at any time"]
}
],
"regexManagers": [
{
"fileMatch": ["(^|/)build\\.yaml$"],
"matchStrings": [
"\\s+(?<arch>aarch64|amd64|armhf|armv7|i386):\\s+\"(?<depName>[^\"]+):(?<currentValue>[^\"@]+)(?:@.+)?\""
],
"datasourceTemplate": "docker"
},
{
"fileMatch": ["(^|/)Dockerfile$"],
"matchStrings": [
"\\s+FROM\\s+(?<depName>[^\"]+):(?<currentValue>[^\"@]+)(?:@.+)?"
],
"datasourceTemplate": "docker"
}
]
}
42 changes: 42 additions & 0 deletions .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: CI/CD

on:
workflow_dispatch:
inputs:
branch:
description: "Working branch"
type: string
required: false
default: ""
push:
branches:
- master
pull_request:
branches:
- master
- develop

permissions:
contents: read

jobs:
auto-lock:
runs-on: ubuntu-latest
name: Pin Docker Images
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: crazyrokr/gha-workflows/ha-addon-auto-locker@master
with:
branch: ${{ github.event.inputs.branch }}
lookup_sources: Dockerfile
run-builder:
needs: auto-lock
uses: crazyrokr/gha-workflows/.github/workflows/ha-addon-cicd.yaml@master
secrets: inherit
permissions:
contents: read
id-token: write
packages: write
14 changes: 14 additions & 0 deletions gemini-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM tgagor/gemini-cli:v0.45@sha256:8523945cd03885973abdb90fa9bf6232c523add8a5c6a6386b87a07e441f4a4e

RUN git clone https://github.com/cruzyjapan/Gemini-CLI-UI.git && \
cd Gemini-CLI-UI && \
npm install && \
cp .env.example .env && \
mkdir /share && \
npm run dev

LABEL \
org.opencontainers.image.title="Home Assistant Gemini CLI" \
org.opencontainers.image.description="Runs Gemini CLI within your Home Assistant setup providing remote development vid web-interface" \
org.opencontainers.image.source="https://github.com/crazyrokr/ha-gemini-cli" \
org.opencontainers.image.licenses="GNU General Public License 3.0"
23 changes: 23 additions & 0 deletions gemini-cli/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Gemini CLI
version: "0.0.1"
slug: gemini-cli
description: Runs Gemini CLI within your Home Assistant setup providing remote development vid web-interface
url: https://github.com/crazyrokr/ha-gemini-cli
webui: http://[HOST]:[PORT:4009]
arch:
- aarch64
- amd64
init: false
tmpfs: true
map:
- type: addon_config
read_only: False
path: /config
- type: share
read_only: False
path: /share
ingress: true
ingress_port: 4009
ports:
4009/tcp: 4009
image: "ghcr.io/crazyrokr/ha-gemini-cli"
Binary file added gemini-cli/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gemini-cli/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.