claude-code-runner 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/docker-build.yml +56 -0
- package/README.md +16 -2
- package/README.zh-Hans.md +16 -2
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: Build and Push Docker Image
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*.*.*'
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
REGISTRY: ghcr.io
|
|
11
|
+
IMAGE_NAME: ${{ github.repository }}
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build-and-push:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
packages: write
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout repository
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
|
+
|
|
24
|
+
- name: Set up Docker Buildx
|
|
25
|
+
uses: docker/setup-buildx-action@v3
|
|
26
|
+
|
|
27
|
+
- name: Log in to GitHub Container Registry
|
|
28
|
+
uses: docker/login-action@v3
|
|
29
|
+
with:
|
|
30
|
+
registry: ${{ env.REGISTRY }}
|
|
31
|
+
username: ${{ github.actor }}
|
|
32
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
33
|
+
|
|
34
|
+
- name: Extract metadata (tags, labels)
|
|
35
|
+
id: meta
|
|
36
|
+
uses: docker/metadata-action@v5
|
|
37
|
+
with:
|
|
38
|
+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
|
39
|
+
tags: |
|
|
40
|
+
type=semver,pattern={{version}}
|
|
41
|
+
type=raw,value=latest
|
|
42
|
+
|
|
43
|
+
- name: Build and push Docker image
|
|
44
|
+
uses: docker/build-push-action@v5
|
|
45
|
+
with:
|
|
46
|
+
context: .
|
|
47
|
+
file: ./docker/Dockerfile
|
|
48
|
+
push: true
|
|
49
|
+
tags: ${{ steps.meta.outputs.tags }}
|
|
50
|
+
labels: ${{ steps.meta.outputs.labels }}
|
|
51
|
+
cache-from: type=gha
|
|
52
|
+
cache-to: type=gha,mode=max
|
|
53
|
+
platforms: linux/amd64,linux/arm64
|
|
54
|
+
|
|
55
|
+
- name: Image digest
|
|
56
|
+
run: echo "Image pushed with digest ${{ steps.build-and-push.outputs.digest }}"
|
package/README.md
CHANGED
|
@@ -259,12 +259,26 @@ Then run:
|
|
|
259
259
|
claude-run
|
|
260
260
|
```
|
|
261
261
|
|
|
262
|
-
|
|
262
|
+
**Available Official Images:**
|
|
263
|
+
|
|
264
|
+
- **GitLab Registry** (Default): `registry.gitlab.soraharu.com/xiaoxi/claude-code-runner:latest`
|
|
265
|
+
- **GitHub Container Registry**: `ghcr.io/yanranxiaoxi/claude-code-runner:latest`
|
|
266
|
+
|
|
267
|
+
Both images are:
|
|
263
268
|
- ✅ Regularly maintained and updated
|
|
264
269
|
- ✅ Pre-configured and tested
|
|
265
270
|
- ✅ Ready to use out of the box
|
|
266
271
|
- ✅ Faster startup time
|
|
267
|
-
- ✅ No need to specify the full image URL
|
|
272
|
+
- ✅ No need to specify the full image URL when using GitLab Registry
|
|
273
|
+
|
|
274
|
+
To use GitHub Container Registry instead:
|
|
275
|
+
|
|
276
|
+
```json
|
|
277
|
+
{
|
|
278
|
+
"buildImage": false,
|
|
279
|
+
"dockerImage": "ghcr.io/yanranxiaoxi/claude-code-runner:latest"
|
|
280
|
+
}
|
|
281
|
+
```
|
|
268
282
|
|
|
269
283
|
**Option 2: Use Your Own Custom Image**
|
|
270
284
|
|
package/README.zh-Hans.md
CHANGED
|
@@ -259,12 +259,26 @@ claude-run config
|
|
|
259
259
|
claude-run
|
|
260
260
|
```
|
|
261
261
|
|
|
262
|
-
|
|
262
|
+
**可用的官方镜像:**
|
|
263
|
+
|
|
264
|
+
- **GitLab 镜像仓库**(默认):`registry.gitlab.soraharu.com/xiaoxi/claude-code-runner:latest`
|
|
265
|
+
- **GitHub 容器镜像仓库**:`ghcr.io/yanranxiaoxi/claude-code-runner:latest`
|
|
266
|
+
|
|
267
|
+
两个镜像都具有以下优势:
|
|
263
268
|
- ✅ 定期维护和更新
|
|
264
269
|
- ✅ 已预配置并测试
|
|
265
270
|
- ✅ 开箱即用
|
|
266
271
|
- ✅ 启动速度更快
|
|
267
|
-
- ✅
|
|
272
|
+
- ✅ 使用 GitLab 镜像仓库时无需指定完整的镜像 URL
|
|
273
|
+
|
|
274
|
+
要使用 GitHub 容器镜像仓库:
|
|
275
|
+
|
|
276
|
+
```json
|
|
277
|
+
{
|
|
278
|
+
"buildImage": false,
|
|
279
|
+
"dockerImage": "ghcr.io/yanranxiaoxi/claude-code-runner:latest"
|
|
280
|
+
}
|
|
281
|
+
```
|
|
268
282
|
|
|
269
283
|
**方案 2:使用自定义镜像**
|
|
270
284
|
|