From 7ef4272cf3daa42db555c529f409e36122024432 Mon Sep 17 00:00:00 2001 From: mojocn Date: Tue, 17 Jun 2025 15:51:53 +0800 Subject: [PATCH] refactor: update Docker image build configuration and add tag support --- .github/workflows/docker-image.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index b21bcae..aa95752 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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 \ No newline at end of file + tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }} \ No newline at end of file