From 06a70b66802f294cfe55c08cb2fca9b74ef4a43a Mon Sep 17 00:00:00 2001 From: oiov Date: Tue, 3 Jun 2025 14:47:18 +0800 Subject: [PATCH] chore --- .github/workflows/docker-build-push.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index 9981912..683369d 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -4,8 +4,9 @@ on: push: branches: - main + - fix/docker tags: - - 'v*.*.*' + - "v*.*.*" pull_request: branches: - main @@ -47,7 +48,7 @@ jobs: tags: | type=sha,format=short type=ref,event=branch,prefix= - type=ref,event=tag + type=ref,event=tag # 构建并推送 Docker 镜像 - name: Build and push Docker image @@ -55,10 +56,10 @@ jobs: with: context: . file: ./Dockerfile - push: true # ${{ github.event_name != 'pull_request' }} + push: true # ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | ENVIRONMENT=${{ github.event.inputs.environment || 'production' }} cache-from: type=gha - cache-to: type=gha,mode=max \ No newline at end of file + cache-to: type=gha,mode=max