Skip to content

Commit

Permalink
add login
Browse files Browse the repository at this point in the history
  • Loading branch information
sjqzhang committed Sep 25, 2024
1 parent 66d05a3 commit 7956318
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
# 使用GITHUB_TOKEN登录,它允许操作推送容器镜像
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
Expand Down

0 comments on commit 7956318

Please sign in to comment.