Browse Source

Restrict drone docker publishing to master branch

Dashie der otter 1 month ago
parent
commit
f97b6a2f8a
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      .drone.yml

+ 4
- 0
.drone.yml View File

@@ -60,6 +60,8 @@ pipeline:
60 60
     secrets:
61 61
         - DOCKER_USERNAME
62 62
         - DOCKER_PASSWORD
63
+    when:
64
+      branch: master
63 65
 
64 66
   publish-worker:
65 67
     image: plugins/docker
@@ -69,6 +71,8 @@ pipeline:
69 71
     secrets:
70 72
         - DOCKER_USERNAME
71 73
         - DOCKER_PASSWORD
74
+    when:
75
+      branch: master
72 76
 
73 77
   notify:
74 78
     image: plugins/slack

Loading…
Cancel
Save