refactor: update Docker image build configuration and add tag support

This commit is contained in:
mojocn
2025-06-17 15:51:53 +08:00
parent 4420296c85
commit 7ef4272cf3

View File

@@ -1,9 +1,11 @@
name: Build and Push Docker image
name: 构建image和发布
on:
push:
branches:
- main
tags:
- '*'
jobs:
build-and-push:
@@ -28,4 +30,4 @@ jobs:
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:latest
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}