-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
v_wieszheng(郑市委)
committed
Aug 28, 2024
1 parent
861886c
commit f075e0c
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,14 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.HUB_GITHUB_TOKEN }} | ||
|
||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag bread:${{ github.run_id }} | ||
run: | ||
| # 使用 上一步写的 Dockerfile 构建镜像并发布到私有仓库; 发布完成可以去 https://github.com/MrGaoGang?tab=packages 查看 | ||
docker build . --file Dockerfile --tag ghcr.io/wieszheng/bread-image:latest | ||
docker push ghcr.io/wieszheng/bread-image:latest |