Skip to content

Commit efaef32

Browse files
committed
ci: update docker image owner preparation in release workflow
1 parent 06c5fc9 commit efaef32

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

‎.github/workflows/docker-release.yml‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
- name: Checkout repository
2626
uses: actions/checkout@v6
2727

28-
- name: Prepare image name
29-
id: image
30-
run: echo "name=$(echo \"${GITHUB_REPOSITORY_OWNER}/yuquesync\" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
28+
- name: Prepare image owner
29+
id: image_owner
30+
run: echo "value=${GITHUB_REPOSITORY_OWNER,,}" >> "$GITHUB_OUTPUT"
3131

3232
- name: Set up Docker Buildx
3333
uses: docker/setup-buildx-action@v3
@@ -43,7 +43,7 @@ jobs:
4343
id: meta
4444
uses: docker/metadata-action@v5
4545
with:
46-
images: ${{ env.REGISTRY }}/${{ steps.image.outputs.name }}
46+
images: ${{ env.REGISTRY }}/${{ steps.image_owner.outputs.value }}/yuquesync
4747
tags: |
4848
type=ref,event=tag
4949
type=raw,value=latest,enable={{is_default_branch}}
@@ -71,9 +71,9 @@ jobs:
7171
- name: Checkout repository
7272
uses: actions/checkout@v6
7373

74-
- name: Prepare image name
75-
id: image
76-
run: echo "name=$(echo \"${GITHUB_REPOSITORY_OWNER}/yuquesync\" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
74+
- name: Prepare image owner
75+
id: image_owner
76+
run: echo "value=${GITHUB_REPOSITORY_OWNER,,}" >> "$GITHUB_OUTPUT"
7777

7878
- name: Get tag name
7979
id: get_tag
@@ -86,7 +86,7 @@ jobs:
8686
8787
services:
8888
yuque-sync:
89-
image: ${{ env.REGISTRY }}/${{ steps.image.outputs.name }}:${{ steps.get_tag.outputs.tag }}
89+
image: ${{ env.REGISTRY }}/${{ steps.image_owner.outputs.value }}/yuquesync:${{ steps.get_tag.outputs.tag }}
9090
container_name: yuque-sync
9191
restart: always
9292
volumes:
@@ -130,7 +130,7 @@ jobs:
130130
-e YUQUE_TOKEN="你的token" \
131131
-e YUQUE_SESSION="你的session" \
132132
-v ./data:/data \
133-
${{ env.REGISTRY }}/${{ steps.image.outputs.name }}:latest
133+
${{ env.REGISTRY }}/${{ steps.image_owner.outputs.value }}/yuquesync:latest
134134
135135
# 方式二:使用 docker-compose(推荐)
136136
# 1. 下载 docker-compose-release.yml
@@ -179,7 +179,7 @@ jobs:
179179
## 🐳 Docker 镜像发布
180180
181181
### 镜像信息
182-
- **镜像地址**: `${{ env.REGISTRY }}/${{ steps.image.outputs.name }}:${{ steps.get_tag.outputs.tag }}`
182+
- **镜像地址**: `${{ env.REGISTRY }}/${{ steps.image_owner.outputs.value }}/yuquesync:${{ steps.get_tag.outputs.tag }}`
183183
- **支持架构**: linux/amd64, linux/arm64
184184
- **导出格式**: PDF(默认)和 Markdown
185185
@@ -191,7 +191,7 @@ jobs:
191191
-e YUQUE_TOKEN="你的token" \
192192
-e YUQUE_SESSION="你的session" \
193193
-v ./data:/data \
194-
${{ env.REGISTRY }}/${{ steps.image.outputs.name }}:latest
194+
${{ env.REGISTRY }}/${{ steps.image_owner.outputs.value }}/yuquesync:latest
195195
```
196196
197197
### 📁 下载文件

0 commit comments

Comments
 (0)