Skip to content

Commit 7956318

Browse files
author
sjqzhang
committed
add login
1 parent 66d05a3 commit 7956318

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17+
- name: Log in to GitHub Container Registry
18+
# 使用GITHUB_TOKEN登录,它允许操作推送容器镜像
19+
uses: docker/login-action@v2
20+
with:
21+
registry: ghcr.io
22+
username: ${{ github.repository_owner }}
23+
password: ${{ secrets.GITHUB_TOKEN }}
1724
- name: Build and push
1825
uses: docker/build-push-action@v3
1926
with:

0 commit comments

Comments
 (0)