Skip to content

Commit bb027fb

Browse files
authored
Merge pull request #79 from YuJunZhiXue/trae
修改了docker镜像的问题,推送hub和 GHCR
2 parents 54ff45f + c3a1b46 commit bb027fb

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/docker-publish.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
branches: [ "main" ]
66
tags: [ "v*.*.*" ]
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
packages: write
712

813
env:
914
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
@@ -28,11 +33,20 @@ jobs:
2833
username: ${{ secrets.DOCKERHUB_USERNAME }}
2934
password: ${{ secrets.DOCKERHUB_TOKEN }}
3035

36+
- name: Log in to GitHub Container Registry
37+
uses: docker/login-action@v3
38+
with:
39+
registry: ghcr.io
40+
username: ${{ github.actor }}
41+
password: ${{ secrets.GITHUB_TOKEN }}
42+
3143
- name: Extract metadata
3244
id: meta
3345
uses: docker/metadata-action@v5
3446
with:
35-
images: yujunzhixue/qwen2api
47+
images: |
48+
yujunzhixue/qwen2api
49+
ghcr.io/yujunzhixue/qwen2api
3650
tags: |
3751
type=raw,value=latest,enable={{is_default_branch}}
3852
type=semver,pattern={{version}}

0 commit comments

Comments
 (0)