diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index a732592..6b4fb67 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -6,10 +6,10 @@ name: Build docker image
 on:
   push:
     branches: [ "main" ]
+    tags:
+      - "v*"
   pull_request:
     branches: [ "main" ]
-  tags:
-    - "v*"
 
 permissions:
   contents: read